Hi, I’m Henrik Joreteg

Mobile web consultant, developer, and speaker

all posts | twitter | email | hire | book | tutorials

Google chart API simple and sweet


So, in my humble opinion Google’s chart api is genius. I know some of this has been around for a while. But I’ve never really looked at it till now.

You just pass in paramaters and Google draws and serves up your charts super fast. In it’s most basic form, all you gotta do is put the paramaters in your image tag.

Here’s a couple of simple examples:

<img src="http://chart.apis.google.com/chart?chs=250x100
&chd=t:60,20,20&cht=p3&chl=Pure|Genius|Yo"/>

Awesome Chart API

<img src="http://chart.apis.google.com/chart?cht=bvs&chco=4D89F9,C6D9FD
&chd=t:10,50,60,80,40|50,60,100,40,20&chds=0,160&chs=200"/>

Another awesome chart

There’s a lot more too it. Just read the chart docs API.