I currently have the following Javascript code.
<script>
google.setOnLoadCallback(drawSeriesChart);
function drawSeriesChart() {
var query = new
google.visualization.Query('https://docs.google.com/spreadsheets/d/1Q_f86rmnDJ3Ei-yNSLmIDeNwgTJXRHMceNlZQGn2TU0/edit#gid=890579914',
SELECT A:E)
/*query.setQuery('Name, X Coordinate, Y Coordinate, Alliance Name,
Importance');*/
query.send(handleQueryResponse);
var data = response.getDataTable();
/*var data = google.visualization.arrayToDataTable([
['name', 'X', 'Y', 'Alliance', 'Importance'],
['ninja', 100, 100, 'FreeK', 10]
]); */
var options = {
title: 'GGE test Map',
hAxis: {title: 'X Axis', minValue: 0, maxValue: 1000},
vAxis: {title: 'Y Axis', direction: -1, minValue: 0, maxValue:
1000},
bubble: {textStyle: {fontSize: 11}}
};
var chart = new
google.visualization.BubbleChart(document.getElementById('series_chart_div'));
chart.draw(data, options);
}
</script>
This is not including the HTML, which is simply a div
labled 'series_chart_div'
When I was using the arrayToDataTable method, to test and make sure the
chart worked, it all worked fine. Now I want to link the chart to a table
so it can receive it's data from there.
I
referenced
https://developers.google.com/chart/interactive/docs/spreadsheets?hl=en#sheet-name
to link the chart to the table, but now I can not figure out what is wrong.
When the page is loaded, it displays a blank page.
I most likely have a stupid mistake in my code, could anyone take a look at
it and let me know?
Thankyou!
--
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/d66a9833-34d1-42cd-a8b2-63b7c3a0f141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.