Thanks for your reply,

I'll retest this but i think i've already tried this one out. The ready
event does get fired each time the graph is drawn. What i've been doing is
removing all event bindings to the chart when the user selects something.
Then reconnecting them after the chart has fired the 'animationfinish'
event.

Doesn't seem to make any difference. I still get a null error. Turning off
animations makes everything just fine. Even though i remove the select
event handler I still get an error.




On 9 February 2012 15:45, asgallant <[email protected]> wrote:

> I suspect that the problem is that every time you call the draw method,
> the API adds another copy of the 'select' event handler to the chart.
>  Removing the 'ready' event handler after it is first called will fix the
> problem if this is indeed the cause. Try this:
>
> var ready = google.visualization.events.addListener(chart, 'ready',
> function () {
>     google.visualization.events.addListener(chart, 'select', function ()
> {....});
>     google.visualization.events.removeListener(ready);
> });
>
>
> --
> 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/-/ix0X0Hhyc24J.
>
> 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.
>

-- 
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