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);


-- 
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/49056ee8-f763-40c6-8037-1b2385af6250%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to