One thing you want to do is to verify that you waited for the 'ready' event
to be fired after the initial draw.
See in the playground and in the docs how to listen to this event.
Once this is done, it should work.

Regards,
VizGuy



On Sat, Oct 30, 2010 at 6:21 PM, Sam Crawford <[email protected]> wrote:

> Afternoon all,
>
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-visualization-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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.

Reply via email to