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