Google Launches a Chart API

Google recently released a URL API for charting.

What's a URL API, you ask?  Well you open an image to a specially formatted url, and google returns you a chart.  You can do some pretty amazing things with this API.

Check out these samples:
       

The last one was created with this url:
http://chart.apis.google.com/chart?cht=p3&chd=s:Uf9a&chs=200x100&chl=A|B|C|D

The urls are a little bit cryptic as you can tell, but this allows you to use one source for charting regardless of your language or platform.  A .NET wrapper is sure to spring up in the next couple days that will allow you to take advantage of this API with a more structured format.

Update:  Boy did I underestimate the community.  Chris Pietschmann already created an ASP.NET 2.0 Server Control to leverage the Google Chart API in .NET.

I'm wondering how they are able to handle all of this.  Not only is it a lot of traffic to handle (but they're obviously pros at that by now) but it takes a significant amount of CPU cycles to generate a graph like that on the fly.  How do they keep their response times so quick?
 

#1 Sean Chambers avatar
Sean Chambers
12.11.2007
11:34 PM

It's obvious to me now that Google has long since sold it's soul to the devil to accomplish the quickest response times on the web. I'm convinced that's the only possible way they have an endless supply of bandwidth :)


#2 James Thigpen avatar
James Thigpen
12.12.2007
8:02 AM

Man that's hot.


#3 Reuben avatar
Reuben
12.12.2007
11:05 AM

Excellent post dude! Btw, I went back to your posts on nhibernate - i think you've done a great job at explaining what it is and how it works. Keep it up man!


#4 rapidadverbssuck avatar
rapidadverbssuck
12.13.2007
6:20 AM

Someone has actually already put the API to good use, if you want to see an example of an application--it's kind of dorky but pretty cool. Really illustrates the power and simplicity of the API. Also, the proprietary algorithm they use here is amazingly accurate! It's at lovegraph.thefootnotes.com -- worth checking out. By the way, love the blog, keep up the good work!


#5 rapidadverbssuck avatar
rapidadverbssuck
12.13.2007
8:25 AM

I know it's not classy to double post, but I gave the wrong address; it's actually: http://lovegraph.thefootnotes.netSorry!


#6 Mohammad Azam avatar
Mohammad Azam
12.13.2007
1:17 PM

Hi, Excellent post Ben! @rapidadverbssuck, very nice link! :)


#7 Wes avatar
Wes
12.26.2007
1:34 PM

Google also put together a .NET class library:http://code.google.com/p/ngchart/