Related Links: NLC | Contact | Blogroll | Feed |

 

"You Two! We're at the end of the universe, eh. Right at the edge of knowledge itself. And you're busy... blogging!"
— The Doctor, Utopia


Tuesday, December 11, 2007

Google Chart API

Need a quick chart on your Web site and don't want to bother with creating it in Excel then exporting the image? Try the Google Chart API instead? Just build a URL, set it as an img source and see your results.

For example here's the code for a simple pie chart:

<img src=http://chart.apis.google.com/chart?
cht=p3&chd=s:hW&chs=250x100&chl=Cool|Not Cool />

and the results are:

Or how about a Venn diagram?

It gets way more complicated but this should give you a basic idea.

Labels: ,