Categories
Development

Google Chart API

Looks like Google released a very cool looking Chart API. Seems pretty easy to use. You just make a call to their API in the image src attribute passing the API some basic parameters and a PNG graph is embedded in your page.

There’s several types of charts available:

  • Line Chart
  • Scatter Plot
  • Bar Chart
  • Venn Diagram
  • Pie Chart

The API is fully documented and instructions can be found here.

Below is a real basic example of making a call to an image on the page:

http://chart.apis.google.com/chart?
chs=200×125
&chd=s:helloWorld
&cht=lc
&chxt=x,y
&chxl=0:|Mar|Apr|May|June|July|1:||50+Kb

Sample chart

Leave a Reply

Your email address will not be published. Required fields are marked *