Google's fantastic charts API

The launch of Google’s new Charts API last month didn’t make many ripples, or then again, maybe I was too busy to notice. But I’ve just used it in anger for the first time, and it’s fantastic.
The ability to create graphics dynamically, by passing values in a URL query string, isn’t anything new. But as ever, Google goes far beyond the call of duty. You can have line graphs, bar charts, pie charts, Venn diagrams and scatter plots. You can configure the size, the axes, the labels, the data markers and the colours (including backgrounds, fill areas and even gradient effects)… and include it in your page as easily as any other image. Just glance down through the examples on the API documentation page, and see how much it can do.
Once again, this is the kind of tool I just wish I’d had access to five years ago. I can’t tell you the agony I went through whilst at National Statistics, trying to get the IT department to buy or code me something like this.
The only catches are a limit of 50,000 queries per user (?) per day, and the rather arcane method for calculating and communicating the data values. This is just crying out for a simple web-based form to produce the necessary query string.
You want examples? Sure. Here’s last night’s Iowa Caucus results:


I’ve also added a pie chart to the blog’s sidebar, showing how many people have got round to switching from my old RSS feed to my new Feedburner feed. 🙂

3 thoughts on “Google's fantastic charts API”

  1. I didn’t think that particular stat would ever be contentious! 🙂
    Basically, I’m not. My guesstimate of RSS subscribers comes from adding Google Reader (70) to Bloglines (20), plus a dozen to cover the various iGooglers, netvibers, even Kinja types (you know who you are). That gives me a target figure for the number of people I want to see using the Feedburner feed.
    Thanks to the dozen of you who acted within the first 24 hours. Now what’s keeping the rest of you??

  2. (Slightly lazy to ask rather than Google to find out, but …)
    Can we subscribe to the comments feed through FeedBurner too? And you might want to try to amend the “RSS Entries” link in the page footer to point to FeedBurner too!

Comments are closed.