Evening

I hesitate to ask this as I can see its asked everywhere, however there 
never appears an answer to those questions or they refer to a html 
response. My end goal is to use this gantt chart embedded in google sheets 
so I can update change and use it as 
needed https://developers.google.com/chart/interactive/docs/gallery/ganttchart

Referenced top results.
http://stackoverflow.com/questions/14768879/google-visualization-api-query-referenceerror-google-is-not-defined
https://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0ahUKEwj0rdui5I3LAhWEE5QKHRAEDaYQFggwMAM&url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Fgoogle-visualization-api%2FXNgw2StZ_cg&usg=AFQjCNEjPo2KW-dSXXUPC7QyMOgGK08PTA&sig2=vxNK8dAiPADDlFQufJr-fQ&bvm=bv.114733917,d.dGo


I am following the guide for Embedding a Chart in a 
Spreadsheet 
https://developers.google.com/chart/interactive/docs/spreadsheets#sheet-name 
and have basically copied the code as such and created a basic 2 column 
table to test it out.

So my code is in the Sheets Script editor:

function drawChart() {
  var query = new 
google.visualization.Query('https://docs.google.com/spreadsheets/d/15l3ZK45hv2ByOfkUiAKoKp-Z9a1u1-Q_rsLS7SqC51E/edit#gid=0&range=A1:b6');
  query.send(handleQueryResponse);
}

function handleQueryResponse(response) {
  var data = response.getDataTable();
  var chart = new 
google.visualization.ColumnChart(document.getElementById('columnchart'));
  chart.draw(data, null);
}

Are you able to help me with this?

Thanks

Sayth

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/cd507e0d-5c45-4c27-b024-adfc64ea8af7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to