The Query is loaded along with the charts, so the code that uses the Query
needs to be in a callback as well. You need to structure your code like so:

google.load(...);
google.setOnLoadCallback(initialize);

function handleQueryResponse(response) {
  if (response.isError()) { ... }
  var data = response.getDataTable();
  var options = { ... };
  var chart = ...;
  chart.draw(data, options);
}

function initialize() {
  var datQuery = new google.visualization.Query(...);
  datQuery.send(handleQueryResponse);
}


On Wed Dec 03 2014 at 3:15:17 PM Ken Burkhalter <[email protected]>
wrote:

> The error is thrown at Line 22
>
>
> On Wednesday, December 3, 2014 3:14:12 PM UTC-5, Ken Burkhalter wrote:
>>
>>
>> In the event it helps.  Here is the complete HTML page...
>>
>>
>> <https://lh3.googleusercontent.com/-X_i1Ax5xA4I/VH9u8QDKuoI/AAAAAAAACas/4N4f-WtnL9k/s1600/chart.png>
>>
>>
>  --
> 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
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to