Gapminder Motion (google gadget) working
Posted by sarneil on 28 Apr 2008 in Activity Log
Got the Google Gadget based on Hans Rosling's Trendalyzer. It's called Gapfinder Motion. There is absolutely no supporting documentation. It took me quite some time and a trip through Google's visualization api to find that the URL that the gadget needs requires "tq" as an argument rather than the "ccc" provided in the URL of the page itself. For example to address this URL successfully from the gadget:
http://spreadsheets.google.com/ccc?key=pKaktXm-iVRpJG7BHoeNdEg&hl=en
(for now this page is accessible only to me)
I must enter this into the URL field in the gadget
http://spreadsheets.google.com/tq?key=pKaktXm-iVRpJG7BHoeNdEg&hl=en
Here's the URL for the page that allows you to specify the necessary arguments, and then generates the block of javascript code that you put into the page (I've added linebreaks to make the URL a little more manageable in the blog viewer):
http://k5r309h2-a.gmodules.com/ig/creator?synd=open&
url=http%3A//www.google.com/ig/modules/motionchart.xml&
pt=%26context%3Dd%26synd%3Dopen%26lang%3Den%26.lang%3Den%26country%3Dus%26.country%3Dus%26cat%3Dall%26num%3D1%26start%3D-1%26cols%3D1%26objs%3D6Ya8&
sn=6Ya8&lang=en