AnnotatedTimeLine: hideDataColumns no longer works

50 views
Skip to first unread message

Mark Desrosier

unread,
Dec 2, 2011, 12:33:25 PM12/2/11
to Google Visualization API
Go to the playground for annotatedTimeLine (http://code.google.com/
apis/ajax/playground/?
type=visualization#annotated_time_line_configuration )

modify the code:
1) add this line after the draw,
annotatedtimeline.hideDataColumns([1,2,3]);
2) copy the lines that have the draw and add them after the line added
above. (so there are 2 draw statements)
3) run the code.

All the data is still shown. I've tried to hide just one column and
arrays of columns. Neither seems to work.

This seems to have quit working in the last day or so. What there a
release recently?

Mark

Mark Desrosier

unread,
Dec 2, 2011, 2:44:39 PM12/2/11
to Google Visualization API
Well, I have a demo site that hasn't been updated which still works
(it has issues with scales, but I can hide and show data). Therefore
it is a change that I have made to my development copy that has caused
the failure. I still haven't found it! I'll update here when I do
find it.

Seems that that demo code should work with the changes in my original
post.
Mark

asgallant

unread,
Dec 2, 2011, 4:48:12 PM12/2/11
to google-visua...@googlegroups.com
Don't call draw() a second time, AnnotatedTimeline#hideDataColumns redraws the chart for you..  Calling AnnotatedTimeline#draw redraws the chart in its original state.

Mark Desrosier

unread,
Dec 3, 2011, 11:26:35 AM12/3/11
to Google Visualization API
This change fixed the problem! I'm not sure why it worked before, but
eliminating the call to draw after the hideDataColumns call yields the
desired result. I have more questions about scaleColumns that I will
ask in another post.

Thanks,
Mark

Reply all
Reply to author
Forward
0 new messages