Pages

Wednesday, September 28, 2011

Google new chart API

Google new chart API


A new API from Google that generates information charts in a dynamic way. its usage is quite straightforward: you link to an image in the form of a parameterized URL, such as 

http://chart.apis.google.com/chart?cht=p3&chd=t:90,49&chs=400×200&chl=data|bling.





“cht=p3? is the chart type, in this case, a pie chart.





“chd=t:90,49? are the chart values, text-encoded, and separated by a comma.

“chs=400×200? is the custom chart size, 400 by 200 pixels.

“chl=Data|Bling” are the different labels for the pie chart sections, separated via the pipe character.

chart types include: line charts, bar charts, pie charts, Venn diagrams & scatterplots.


View Demo


Any Questions let me know via comments ! 
:D

No comments:

Post a Comment

Any Questions or Suggestions ?