Dynamic charts with Google Chart API

Google Chart API will let you generate charts dynamically to be used on any web page.

For example, the following IMG tag will create a 3D pie chart:


<pre><img src="http://chart.apis.google.com/chart?
cht=p3&amp;chd=t:60,40&amp;chs=250x100&amp;chl=Hello|World"
alt="Sample chart" />

Sample chart

There are more option that just pie and bar charts, for example you can have a map with data per country:


<img src="http://chart.apis.google.com/chart?
cht=t&
chs=440x220&
chd=t:40,80,100&
chco=DDDDDD,FF0000,00FF00,FFFF00&
chld=FRDECH&
chtm=europe&
chf=bg,s,9999FF"
alt="Map of Europe">

Map of Europe

It could also generate QR codes for you. Read this one with your favorite bar code reader:

<img src="http://chart.apis.google.com/chart?
chs=250x100&
cht=qr&
chl=Hello+world"
alt="Sample chart" />

Sample chart

If you want to know more, visit the Google Chart API page.

This entry was posted in Internet, Technology and tagged , , , , , . Bookmark the permalink.