For anyone who dabbles with code online, this Google tool is a must. You can edit the javascript there and then and see the results. The best thing is that there are loads of examples with preloaded data.
This example is good because it uses AJAX to load a google spreadsheet into a google graph smashing.