Should series match visible columns in DataView?

30 views
Skip to first unread message

Mark D

unread,
May 23, 2012, 12:22:29 PM5/23/12
to Google Visualization API
I'm using a LineChart to graph many datapoints. I define a series to
assign data values to an axis. I am using a DataView to hide/show
the data. When I hide a column, do I need to adjust the series to
match the visible columns or can the series match the underlying
DataTable?

asgallant

unread,
May 23, 2012, 2:25:39 PM5/23/12
to google-visua...@googlegroups.com
You shouldn't have to change anything in the underlying DataTable when using a DataView to filter your data or show/hide columns.

Mark D

unread,
May 23, 2012, 3:32:09 PM5/23/12
to google-visua...@googlegroups.com
Fantastic!  I was hoping that I would not have to manage the series.
I must have another problem then...

When I hide all the columns but 3, the x axis and two Y axis (one for left and one for right axis), both Y values are mapped to the default axis (left). 

I have verified my management of the visible columns is correct.  Any Ideas what could be causing the problem?

Mark

asgallant

unread,
May 23, 2012, 3:44:23 PM5/23/12
to google-visua...@googlegroups.com
Ahh, sorry, I misunderstood you.  Yes, you will need to change the series option of the chart to map the data to the correct axis.

Mark D

unread,
May 23, 2012, 5:10:26 PM5/23/12
to google-visua...@googlegroups.com
Bummer!

It is still a great package!
Reply all
Reply to author
Forward
0 new messages