I use AnnotatedTimeLine in Javascript like this:
google.load('visualization', '1', {packages: ['annotatedtimeline']});
and this:
annotatedtimeline.draw(data, {'allowRedraw': true});
and it draws the new data with no flicker and no repainting of the chart. I
love it.
(It also seems to maintain a map of all data added from subsequent calls to
draw and that's most excellent.)
So now I'm moving to GWT, so I do this:
AnnotatedTimeLine.Options options = AnnotatedTimeLine.Options.create();
options.setAllowRedraw(true);
and:
final AnnotatedTimeLine atl= new AnnotatedTimeLine(data, options, "600px",
"500px");
dockPanel.add(atl, DockPanel.CENTER);
with subsequent calls like:
atl.draw(data, options);
and it behaves differently. The chart is erased and completely redrawn with
only the new data that has been provided in the
current call to draw.
What am I missing here? Are there new default values to some options that
I'm not setting?
The GWT wrapper loads the same visualization right? What gives?
David
--
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/-/LQoZ3HkVBwYJ.
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.