Google Graph API

29 Aug 2008

Yesterday I played a little with the Google Graph API – it’s a nice simple system where by configuring the parameters to an image source in your HTML, you can get a nice looking graph. Like this one:

This is generated just by including the following URL as an image:

http://chart.apis.google.com/chart?cht=p3&chd=t:1,3,2,4&chs=400×200&chl=Pie|Cake|Jam Tart|Biscuit

It’s not without failings – on some of my tests I ran out of shades of orange where I could easily tell boundaries quite quickly. But as a quick way of generating graphs it’s great. Google has some very nice documentation on how to use it.