Archive for April, 2009

Google Chart API example : Display data on chart made easy

The Google Chart API provides an easy way to generate a chart dynamically by sending a simple URL to Google Chart service as follows:

http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250×100&chl=Hello|World

And Google Chart returns you an image of the chart. As shown the above you just need to pass the Google Chart with three parameters, which are cht (Chart Type), chd (The percentage distribution of your data on Chart), chs (Chart size), and the chl (Chart Label)

Continue reading ‘Google Chart API example : Display data on chart made easy’