ToolBar ToolBar: Datasource DataSource where from ??

30 views
Skip to first unread message

johnwoo...@gmail.com

unread,
Sep 18, 2015, 1:16:29 PM9/18/15
to Google Visualization API
In the example for how to create a toolbar csv there is a datasource:

{type: 'csv', datasource: 'https://spreadsheets.google.com/tq?key=pCQbetd-CptHnwJEfo8tALA'},
now Where does this come from? and how can I do it in my program?
I draw my chart:
var data = google.visualization.arrayToDataTable([
//    ['x', 'Percentage'],
//['string', 'Issues'],
//['number', 'Count'],
//	<% =strResults %>
['Issue', 'Count' , { role: 'annotation' }],
<% =strResults %>
	]);
and
var chart_div = document.getElementById('chart_div');
	    var chart = new google.visualization.BarChart(chart_div);
      // Wait for the chart to finish drawing before calling the getImageURI() method.
	google.visualization.events.addListener(chart, 'ready', function () {
        chart_div.innerHTML = '<img src="' + chart.getImageURI() + '">';
        console.log(chart_div.innerHTML);

johnwoo...@gmail.com

unread,
Sep 18, 2015, 1:18:18 PM9/18/15
to Google Visualization API
where does this datasource come from in the example?
it looks like it is hard coded?

that can not be the way to do this? is it?
Reply all
Reply to author
Forward
0 new messages