What you are missing is your handleQueryResponse function, which should be
defined to wrap around all the rest of the code following your query.send()
call.  You are probably getting a JavaScript error about this that you can
see in your console.

On Tue, Dec 15, 2015 at 6:13 PM, ninja8370 <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/google-visualization-api/d66a9833-34d1-42cd-a8b2-63b7c3a0f141%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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/CAOtcSJMp4JWGf8QSaHovAa%3D6gP9NfY3m%2BRoBZdadwf6P5XbraA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to