To get multiple data series, you have to add more columns to your DataTable. Also, in the chart's "view" parameter, you have to specify these additional columns. Here's an example based on the playground code (with some extra fake data thrown in): http://jsfiddle.net/asgallant/kmhL3/
On Thursday, December 6, 2012 12:54:34 AM UTC-5, Bogdan Rau wrote: > > i'm trying to create a google chart with dependency controls that will > contain multiple data series. What I want to do is, in effect, generate > this: > http://code.google.com/apis/ajax/playground/?type=visualization#column_chart > BUT with a dependency control like here: > http://code.google.com/apis/ajax/playground/?type=visualization#dependent_controls > > This is my data structure: > > Year (options 2008,2009,2010,2011) Variable (options Age Category) > Category (options 18-24,25-34,35-49,50+) Population Proportion (options > proportion1, proportion2, proportion3, proportion4) > > I know I need to create arrays to be able to get this done, however, I'm > not by any means a javascript person and I've gotten as far as creating ONE > data series, but can't seem to find a way to be able to plot multiple data > series on the same graph. > > Any help would be much appreciated! > -- 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/-/q-j_iuM3ZCIJ. 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.
