Google chart API

Saturday 8 December 2007

If I had a need for quick charts as images in web pages, Google Chart API looks pretty useful. I have a feeling I would have more charts on my pages if I took something like this as a given. I'll have to keep my eyes peeled for opportunities I would have overlooked.

They don't handle negative numbers, but that may be a misunderstanding about whether the data are values or relative positions.

Comments

[gravatar]
MattyT 7:26 PM on 8 Dec 2007

Heya Ned, the chart API can represent negative numbers, even if you can't have them in the data directly. You just need to normalize the dataset and then set up your axis labels correctly. This doesn't just apply to -ve numbers it also applies to any range of values that you supply.

[gravatar]
Steve Witham 1:39 PM on 1 Jan 2008

Yeah, although they wait till the very end to make it clear, the whole idea seems to be that you choose one of three available resolutions, then map from your data range to the grid coordinate range of theirs that has that resolution. So the numbers (or characters) you give them have very little resemblance to your original data.

Add a comment:

name
email
Ignore this:
not displayed and no spam.
Leave this empty:
www
not searched.
 
Name and either email or www are required.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.