I'm using Google Charts to create pie charts on my web site. These charts 
display if I hard-code the data, but I'm trying to use a query of a public 
Google Sheet. It's not working, and the problem appears to be in this 
section.

        // Callback to draw the chart 
function drawChart() {
  var query = new google.visualization.Query("[Google Sheet 
URL]/gviz/tq?tq=[ENCODED QUERY]");
  query.send(handleQueryResponse);
}

Bracketed info is replaced by the real values. The query has been encoded 
using the tool on this page: 
https://developers.google.com/chart/interactive/docs/querylanguage. 

I use double quotes around the URL because the query contains a where 
clause with single quotes.

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/5761c4b7-511d-43be-97ad-53598ffd84b7n%40googlegroups.com.

Reply via email to