Here's some minimal reproduction code:
<html>
<head>
<script type="text/javascript"
src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', { callback: displayCount });
function displayCount() {
var myDiv = document.getElementById('myDiv');
var query = new google.visualization.Query(
'https://docs.google.com/spreadsheets/d/1XWJLkAwch5GXAt_7zOFDcg8Wm8Xv29_8PWuuW15qmAE/gviz/tq?headers=1&sheet=Counts&range=A7:A16');
query.send(
function (response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' +
response.getDetailedMessage());
}
var dataTable = response.getDataTable();
myDiv.innerHTML = "Read " + dataTable.getNumberOfRows() + "
rows of data.";
})
}
</script>
</head>
<body>
<div id="myDiv">This should be replaced by a count.</div>
</body>
</html>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/c933caf1-2e39-4b31-b076-59024d4d8d02%40googlegroups.com.