Now you have defined handleQueryResponse inside of your handleSampleDataQueryResponse function. Functions won't get called unless someone calls them. You probably don't need the inner function.
On Tue, Dec 15, 2015 at 8:00 PM, ninja8370 <[email protected]> wrote: > I now have > <script type="text/javascript"> > 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(handleSampleDataQueryResponse); > }; > > function handleSampleDataQueryResponse(response) { > if (response.isError()) { > alert('Error in query: ' + response.getMessage() + ' ' + > response.getDetailedMessage()); > return; > } > > > function 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> > > There are no errors showing in the console, yet it does not display the > chart. Is there something else I'm missing? > > -- > 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/9bb97a70-39a8-4f6f-acbc-53e153b3449d%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/9bb97a70-39a8-4f6f-acbc-53e153b3449d%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/CAOtcSJPyopP5yA2vFdKWVCbqcH1%3DV1FJLt-fdrYtOHNnJhBt6w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
