I can't get any data to display. Thanks for any help you can provide.
<html>
<head>
<script type="text/javascript">
google.load("visualization", '1.0', {packages:['table']});
google.setOnLoadCallback(initialize);
function initialize() {
var opts = {sendMethod: 'auto'};
// Replace the data source URL on next line with your data source URL.
var query = new google.visualization.Query('my google doc spreadsheet url');
// Send the query with a callback function.
query.send(handleQueryResponse);
}
function handleQueryResponse(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
return;
}}
//My JS console in Chrome returns an error here if I remove the } directly above. Error is "Uncaught TypeError: undefined is not a function" If I put the } in, no error, but still no data/table.
var data = response.getDataTable();
var table = new google.visualization.table(document.getElementById('table_div'));
table.draw (data, {showRowNumber: true});
}
</script>
</head>
<body>
<!--Div that will hold the pie chart-->
<div id="table_div"></div>
</body>
</html>