If you are a Splitwise user, you might have noticed this month that we added pie charts to our monthly summary emails. Ryan and I figured out how to do this the night before the emails went out – we were surprised how easy it was to do with the Google Charts API. Technical gibberish after the jump.
There are actually two Google charts APIs, which are confusingly not well documented on the Google charts site. Well, they are both well documented, but in different places that don’t acknowledge each other’s existence very much.
For simplicity, you may want to pass the raw data in the link too, in which case the link will have to include “chd=t:” and then the data separated by commas. This is instead of “chd=s” which will come before some encoded gibberish by default.
If you have any Google charts questions, feel free to post them below and I’ll try to answer if I know. Happy chart making!