I've just started using the Annotated Timeline Chart, having long been
a fan of its use on Google Finance. In fact, I'm hoping to achieve a
similar effect - with high resolution data being displayed when zoomed
in on a recent date, and low resolution data when zoomed out.
Whilst this seems to be possible using the redraw approach highlighted
on http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html,
the entire graph visibly vanishes for a couple of hundred milliseconds
each time I call draw(data). This doesn't look very good at all. Given
that I don't see the same behaviour on Google Finance (and that is
definitely requesting data asynchronously from the server - Wireshark
shows this quite clearly).
My current code is extremely simple - it's exactly the same as the
example code in the URL above, except for:
1) The first call to draw is changed to: chart.draw(data,
{displayAnnotations: false, allowRedraw: true});
2) Subsequent calls to draw are simply: chart.draw(data)
I believe both of the above to be correct according to the documentation.
Any suggestions as to what I'm doing wrong here? Or is this a
limitation of the publicly available Annotated Timeline?
Thanks,
Sam
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
I have the same flickering problem.I use GWT API to work with google vizualization charts, but I hope it's not where the problem lies.I listen to ready event to make sure the chart is ready. Still once I call chart.draw() it flickers just like if I were to add a totally new chart to the page.Options options = Options.create();options.setScaleType(ScaleType.ALLMAXIMIZE);options.setDisplayAnnotations(true);options.setAllowRedraw(true);chart.draw(parseChartData(_data, result), options);Thank you in advance!