Thursday, December 06, 2007

google release their chart api

Just now, google have release their chart api, basically it is a api, that generate chart, using a rest interface.

http://code.google.com/apis/chart/

Here is an example what it can do,


Basically it is a hello world.
http://chart.apis.google.com/chart?cht=lc&chs=200x125&chd=s:helloWorld

a more practical example is this, it is a rough statistics on internet user in the dorm:
http://chart.apis.google.com/chart?cht=p&chs=200x125&chd=s:Nu&chl=niu|iu

niu=non internet user
iu=internet user

the catch is you need to encode your data into a string, notice the chd, that is the data encoded.
you can find more info on the links above.

The thing is this is an easy way for us to actually, visualize data for our website. the fact that it uses a rest interface, does make it easy, to write script to automate task

No comments:

Post a Comment