| Recent
Articles |
Lots Of New Google Maps Features Google Maps has announced lots of new features this week for everything from collaboration to portability. My Location for mobile Maps-even for nonGPS phones. Google Maps has long played nicely with GPS...
Google Maps And Wikipedia Mashup An addictive little mashup called WikipediaVision has combined Google Maps with live data on updates from the English Wikipedia to display the geolocation of...
A Feature Packed WYSIWYG Wordpress Plugin Being a designer/developer, I'm very handy at coding and designing all my own posts. Need the text red? No problem. Need other fun formatting? Not an issue.
Check Out Windows Live Celebrity Search No one seems to be writing about this, so take a look at Windows Live Search for Celebrities. If you search for many famous people, a Smart Answer will list their xRank at the top of the page. The xRank determines how...
26 Free Must-Have Buzz Monitoring Tools There are a lot of companies that will happily relieve you of your dollars, in exchange for buzz monitoring services. While many large companies will enjoy the peace...
Google Spreadsheets Adds Import Functions, Auto-Fill Google Spreadsheets just got a bit more powerful. There are four new cell functions to automatically import external data: importXml, importData, importHtml and googleReader. For instance, importXML has...
|
|
12.10.07
Google's Chart Serving API
By
Nathan Weinberg
Google has this really cool new API that you can use to generate charts. By simply including parameters in a URL, you get a chart image with the chart coming out as whatever type and values you need.
The basic URL format is http://chart.apis.google.com/chart?cht=p3&chd
=t:90,49&chs=350x150&chl=Foo|Bar, and you change it up by altering some of the parameters.
There are five types of charts:
Line (by changing cht= to lc):
That creates a chart with only x values for each point on the line. You can create more than one line, and each point is evenly spaced. If you need points that are not evenly spaced and have both x and y values, use lxy instead of lc, like so:
Next up are bar charts, by changing the parameter to bhs for a horizontal bar chart and bvs for a vertical bar chart, plus chco= for the chart colors. Examples:
Continue reading this article.
About the Author: Nathan Weinberg writes the popular InsideGoogle blog, offering the latest news and insights about Google and search engines.
Visit the InsideGoogle blog.
|