I am trying to understand the ChartWrapper and ChartEditor objects and I am failing.
Let me explain my problem. I cut and paste the example on the website (below) to an html file on my on server. I access it and everything is fine. Then I access the datasourceURL ( http://spreadsheets.google.com/tq?key=pCQbetd-CptGXxxQIG7VFIQ&pub=1) and copy the returned text to another file on my server. Then I use that data file for the datasource url and it doesn't load the file. Is there some magic I need to do in the data source URL to get it to work? Also, I noticed there is a property called "sig", what is that? I am very confused. Thanks in advance Paul <!DOCTYPE html> <html> <head> <meta http-equiv='content-type' content='text/html; charset=utf-8'/> <title>Google Visualization API Sample</title> <!-- One script tag loads all the required libraries! Do not specify any chart types in the autoload statement. --> <script type="text/javascript" src='https://www.google.com/jsapi?autoload={ "modules":[{ "name":"visualization", "version":"1" }] }'></script> <script type="text/javascript"> google.setOnLoadCallback(drawVisualization); function drawVisualization() { // Define the chart using setters: var wrap = new google.visualization.ChartWrapper(); wrap.setChartType('LineChart'); wrap.setDataSourceUrl('http://spreadsheets.google.com/tq?key=pCQbetd-CptGXxxQIG7VFIQ&pub=1'); wrap.setContainerId('visualization'); wrap.setQuery('SELECT A,D WHERE D > 100 ORDER BY D'); wrap.setOptions({'title':'Population Density (people/km^2)', 'legend':'none'}); wrap.draw(); } </script> </head> <body> <div id='visualization' style='height: 400px; width: 400px;'></div> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/309ea801-9dbe-43c4-a259-d0204c014587%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
