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? On Friday, September 18, 2015 at 6:16:29 PM UTC+1, [email protected] wrote: > > 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/fbe858fa-fe68-4132-bc04-30fb4531c065%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
