Google Chart API: 2008 Mashup Fuel
December 7, 2007
With all the talk of web mashups I find it amazing that the most interesting ones still seem to be map-based and especially revolve around the Google Map API. Although Google doesn’t monetize this API, the free publicity the company has received because of this application programming interface is immense.
So if mapping APIs was the first phase of mashups, will the second phase be charts? It would seem we may find out soon as according to Google Blogoscoped the new Google Chart API allows you to display charts and graphs by sending parameters to the API and receiving a PNG graphic in return.
For example the following URL:
http://chart.apis.google.com/chart?
cht=p3&chd=t:40,49,20,2,2,2&chs=450x225
&chl=Avaya|Cisco|Nortel|Toshiba|NEC|Aastra
cht=p3&chd=t:40,49,20,2,2,2&chs=450x225
&chl=Avaya|Cisco|Nortel|Toshiba|NEC|Aastra
will yield the following chart:

This is what the parameters mean:
cht=p3 | chart type: in this case, a pie chart. p would specify a flat pie chart |
chd=t: 40,49,20,2,2,2 | chart values: text-encoded, and separated by a comma |
chs=450x225 | custom chart size: 350x150 pixels |
chl=Avaya|Cisco|Nortel | Labels: separated by the pipe character |
What I like about this service is how easy it is to generate the charts. Moreover there are lots of parameters you can choose that I didn’t mention such as colors for the segments and background as well as resulting graphic label format.
Update: This is just a demo chart and is not meant to represent anything at all except a test of how the charting service works.
Update 12/08/07:
This code yileds the following chart (note there are colors specified in this case):
http://chart.apis.google.com/chart?cht=p3&
&chco=ff0000,00ff00,0000ff
&chd=t:40,49,20,2,2,2,50,45&chs=450x225
&chl=Avaya|Cisco|Nortel|Toshiba|
NEC|Aastra|Scream|Tin%20Can

Update: This is just a demo chart and is not meant to represent anything at all except a test of how the charting service works.
Update 12/08/07:
This code yileds the following chart (note there are colors specified in this case):
http://chart.apis.google.com/chart?cht=p3&
&chco=ff0000,00ff00,0000ff
&chd=t:40,49,20,2,2,2,50,45&chs=450x225
&chl=Avaya|Cisco|Nortel|Toshiba|
NEC|Aastra|Scream|Tin%20Can
Tags: api, application programming interface, charts api, google, google blogoscoped, google chart api, google map api, Mashups
Search Technorati: api, application programming interface, charts api, google, google blogoscoped, google chart api, google map api, Mashups
Related Tags: google chart, nortel toshiba, cisco nortel, avaya cisco, chart, google
- Related Entries
- Web 2.0 comes to CRM - Feb 29, 2008
- Level 3 Communications - Aug 20, 2007
- Arlinx - Aug 20, 2007
- Telrex - Aug 15, 2007
- Comcast Buys Plaxo - May 14, 2008
- Google Pushes Verizon on 700 MHz Open Access - May 06, 2008
- Half a Million Hacked Websites - Apr 26, 2008
- Blackberry Voice Search - Apr 23, 2008
- Too Late to Register Googlepoo - Apr 23, 2008
- Google Quote Finder Launched - Apr 19, 2008
Listed below are links to sites that reference Google Chart API: 2008 Mashup Fuel:
Trackback Pings
TrackBack URL for Google Chart API: 2008 Mashup Fuel:
http://blog.tmcnet.com/mt3/t.fcgi/34293
Comments to Google Chart API: 2008 Mashup Fuel
| RE: Google Chart API: 2008 Mashup Fuel
The google charts API is a pretty cool addition. I added it to Deki Wiki and made it easies to customize the values, making it simple to embed charts into a wiki page: | ||
| RE: Google Chart API: 2008 Mashup Fuel
It’s very good article. Great site with very good look and perfect information. | ||

Technorati
Del.icio.us
Slashdot
Digg
Furl
Spurl
Previous blog:

RSS feed


