Tuesday, December 18, 2007

Google Chart API Tutorial

Very cool and simple. [Link]

But with the power of Google Chart API in your hands all you need to know is to insert an image in your web page and watch your chart come to life. But if you are thinking that what could be the use of using a static image for showing a chart then you are wrong. The Google Chart API is so simple yet so powerful that can give you some amazing features:

  • Create charts simply by using URL with some parameters
  • Inserting the chart is as simple as you would be inserting an image
  • The chart is created on the fly dynamically
  • No need of server side coding
  • No need of JavaScript to code or view your chart
  • Any resolution of the chart with only a change in URL parameters
  • Manipulating the parameters of the URL would change the chart
  • A variety of styles to choose as per your tastes.
Doesn’t this sound pretty much magical.
Here's one I threw together.



http://chart.apis.google.com/chart?cht=s&chd=t:10.0,20.0,30.0,40.0,25.0,30.0,55.0,80.0|10.0,20.0,40.0,80.0,76.0,60.0,55,0,30.0|20.0,40.0,60.0,80.0,100.0,30.0,50.0,30.0&chs=400x400&chtt=Google+Chart+API|Test&chxt=x,y&chf=c,lg,90,AF1616,0.5,Afafaf,0|bg,s,AFAFAF

Pretty cool.

No comments:

Post a Comment