Hi, I need a little help here. I am sure it's something simple, but I am just not seeing it. I am just trying to get the "annotatedtimeline" vis API to work with my google spreadsheet data. I have gotten the gadget to work directly in the spreadsheet. However, when I tried to publish it to a test web site, nothing happens. Can someone take a quick look and let me know what I am missing.
The data is at: http://spreadsheets.google.com/pub?key=p61n1Ub_ckJ44XQgzl_-zDg&gid=1 The code is (I only want to display one line of data, none public version): <html> <head> <script type="text/javascript"src="http://www.google.com/jsapi"></ script><script type="text/javascript"> google.load("visualization", "1", {packages:["annotatedtimeline"]}); google.setOnLoadCallback(initialize); function initialize() { var query = new google.visulization.Query('http:// spreadsheets.google.com/tq?key=p61n1Ub_ckJ44XQgzl_- zDg&range=A1:B106&gid=1'); query.setQuery('select A, select B'); query.send(handleQueryResponse); } function handleQueryResponse(response) { if (response.isError()) { alert('Error in query: ' + response.getMessage() + '' + response.getDetailedMessage()); return; } var data = response.getDataTable(); var chart = new google.visualization.AnnotatedTimeLine(document.getElementById ('chart_div')); chart.draw(data,{width: 400, height: 240, displayAnnotations:true}); } </script> </head> <body> <div id="chart_div"></div> </body> </html> thanks so much... Rocks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
