Google charting API
posted Thu 6 Dec 2007 by Michael Galloy under VisualizationGoogle released a seriously cool charting API today. The data and options about its presentation (not as many as IDL, but quite a few) are encoded into the URL of the image. Of course, there are plenty of chartjunk options, but it seems quite possible to make some serviceable graphs. The one thing I wasn’t able to was turn off the axes in order to make a sparkline. The charts shrinks to the right size , but I couldn’t remove the axes totally (nor make them transparent, set their color to the background color, etc.).
UPDATE: With help from Jonathan in the comments, I can now make a true sparkline . Also, check out Jonathan’s cool Google Charting Tool where you can easily create the line plot that you want.
December 7th, 2007 at 8:51 am
Hey! This is pretty neat. Maybe I don’t need IDL anymore.
Kelly Dean
Fort Collins, CO
December 10th, 2007 at 4:06 pm
Adding two extra elements will turn off the axes:
December 10th, 2007 at 4:07 pm
Looks like the image was blocked — just add this to the end of the img tag:
&chxt=x,y&chxs=0,000000,1,0,_|1,000000,1,0,_