Amazon.com Widgets
GoDaddy.com WebSite Tonight 125x125
123inkjets - Save up to 75% on Printer ink!! PerformancingAds

Tuesday, April 15, 2008

Sweet! Google charts API

As a nerd, nothing fascinates me more than a shiny new API to play with (it's right up there with linux powered toasters) . Well, the Google charts API might not be that new, and as a nerd, I probably should have known about it sooner. Hey, It's new to me, OK!? Don't ruin it for me!

Here is my "hello world" pie chart example:

the ratio of beer to food in my diet

and the code that produced it:
http://chart.apis.google.com/chart?cht=p3&chd=t:90,10&chs=250x100&chl=Beer.|Food.&chco=fff7c2,71613c


The Google charts API offers several types of charts:
  1. Line charts
    • Your basic line charts, but with the ability to either specify x and y values or coordinates.
  2. Sparklines
  3. Bar charts
    • Pretty cool bar charts, horizontal or vertical, multiple data series, etc.
  4. Pie charts
    • 2d or 3d
  5. Venn diagrams
    • These are cool. The colors of the different sections will automatically blend colors in the intersecting areas.
  6. Scatter plots
    • Points are coordinates on an x and y axis, and a third data set can be specified to change the size of each point.
  7. Radar charts
    • Like a line chart, but points are drawn between the center and perimeter of the chart area.
  8. Maps
    • Print maps with the ability to highlight regions.
  9. Google-o-meter
    • A dial-type meter where the dial points at a percentage specified (0 is all the way left and 100 is all the way to the right)
Each chart type includes the ability to change attributes of the features such as their labels, colors, and styles. Cool!

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home