Hello.  I am trying out the Google chart features for the first time.  My 
question is in regards to how to add two Google charts on the one page.  I 
found a good example here:

http://stackoverflow.com/questions/9888920/how-to-add-two-google-charts-on-the-one-page

This worked...It involved discerning which parts of the example code to 
duplicate and what not to duplicate.   The part of the code that I can't 
get exactly correct is that I am linking to live data, not building it on 
my page. When I try to duplicate the below, queryA/B, dataA/B... I either 
get invalid results or only one of the charts are displayed.  What is the 
correct way to code this part of the charts section?

Thank you in advance.  This tool will be very useful.

   var query = new google.visualization.Query(
      'https://docs.google.com/spreadsheet/XXXXXX');

            // Apply query language.
            query.setQuery('SELECT C, COUNT(B) GROUP BY C');

            // Send the query with a callback function.
            query.send(handleQueryResponse);
        }

        function handleQueryResponse(response) {
            if (response.isError()) {
                alert('Error in query: ' + response.getMessage() + ' ' + 
response.getDetailedMessage());
                return;
            }

            var data = response.getDataTable();

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/XmYOxB1c1w8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to