<script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization',Ā Ā Ā Ā 'version':'1','packages':['timeline']}]}"></script><script type="text/javascript">google.setOnLoadCallback(drawChart);function drawChart() {Ā var container = document.getElementById('example3.1');Ā var chart = new google.visualization.Timeline(container);Ā // http://spreadsheets.google.com/ccc?key=0Aq4kEViSS7iEdGk1QjdIYmFxSlBDbzg4aHFJM0pzM3cĀ var query = new google.visualization.Query(Ā Ā Ā 'http://spreadsheets.google.com/tq?key=0Aq4kEViSS7iEdGk1QjdIYmFxSlBDbzg4aHFJM0pzM3c&pub=1');Ā // Apply query language.Ā // B is Client Name, C is Consultant Name, D is start date, E is end date, F is statusĀ query.setQuery('SELECT B,C,D,E ORDER BY B');Ā // Send the query with a callback function.Ā query.send(handleQueryResponse);}function handleQueryResponse(response) {Ā if (response.isError()) {Ā Ā alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());Ā Ā return;Ā }Ā var data = response.getDataTable();Ā chart.draw(data);}</script><div id="example3.1" style="width: 1000px; height: 200px;"></div>
Here's a tidied up version of my script - which of course does nothing at all. Ā I want to step through and find out what it does do and see where it fails - a result which shows nothing to me means no error just, it has abandoned displaying its results. Very odd:< script type = ātext / javascriptāsrc = āhttps: //www.google.com/isapi?autoload={āmodulesā:[{ānameā:āvisualisationā,
āversionā: ā1ā,āpackagesā: [ātimelineā]}]}ā > < /script>
<script type=ātext/javascriptā >
Google.setOnLoadCallback(drawchart);function drawChart() {Ā Ā // Set Data Source
Ā Ā var query = new google.visualization.Query(āhttps: //docs.google.com/a/redvespa.com/spreadsheet/ccc?key=0Aq4kEViSS7iEdGk1QjdIYmFxSlBDbzg4aHFJM0pzM3c&usp=drive_web#gid=0ā);
Ā Ā // Set Query for Data SourceĀ Ā query.setQuery(āSELECT B, C, D, Eā);Ā Ā // Send the query with callback functionĀ Ā query.send(handleQueryResponse);Ā Ā }Ā Ā // Handle Query errors
Ā Ā Ā Ā function handleQueryResponse(response) {Ā Ā Ā Ā Ā Ā if (response.isError()) {Ā Ā Ā Ā Ā Ā Ā Ā alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());Ā Ā Ā Ā Ā Ā Ā Ā return;Ā Ā Ā Ā Ā Ā }
Ā Ā Ā Ā Ā Ā // Draw ChartĀ Ā Ā Ā Ā Ā var data = response.getDataTable();
Ā Ā Ā Ā Ā Ā var container = document.getElementById(āscheduleā);Ā Ā Ā Ā Ā Ā var chart = new google.visualization.Timeline(container));Ā Ā chart.draw(data);} < /script>
On Tuesday, 26 November 2013 17:26:25 UTC+13, Matt Lightbourn wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/gzA99pXx__A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.
// Set Query for Data SourceTo unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.
--
Matt Lightbourn
+64 (0)27 506 2874
Sent from my Dog
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.