You can add both ChartWrappers to the same drawing function: 
http://jsfiddle.net/asgallant/5tLqk/22/, or, since you are querying the 
same rows of data from the same sheet, you can combine the two queries 
(which is slightly more efficient and less error prone) and use the "view" 
parameter of each ChartWrapper to set the columns to use: 
http://jsfiddle.net/asgallant/5tLqk/23/

Incidentally, you had a typo on this line (fixed in my code above):

var wrapper2 = new.google.visualization.ChartWrapper({

there should not be a . between "new" and "google".  Also, you are loading 
the release candidate version (1.1) instead of the production version (1) 
(you should load production unless you have a specific reason to use the 
release candidate), and the deprecated "barchart" package (the BarCharts 
are now a part of the "corechart" package).  The google.load call should 
look something like this:

google.load('visualization', '1', {'packages': ['table','corechart'], 
callback: drawVisualization});

On Monday, January 6, 2014 1:15:19 PM UTC-5, Jolene Oropilla wrote:
>
> Mitch,
>
> Thanks for your help.
>
> The columns I queried DID exist, but the way the dataSourceURL was written 
> did not call the correct sheet I needed. I remedied this by replacing the 
> "#" to "&" before "...gid=8..."
>
> I do have some follow-up questions for you if you don't mind.
>
>
>    1. I'd like to add a barchart with different datat from the same 
>    dataSource. I added (what I thought was the right) code and now I don't 
>    have any results appearing.
>       1. http://jsfiddle.net/joropilla/5tLqk/20/
>       2. Is there a way to optimize the code in the jsfiddle so that I 
>    don't have to create two functions with their own dataSourceUrls?
>
> Looking forward to your reply!
>

-- 
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/groups/opt_out.

Reply via email to