To be specific if you go to this link:
https://code.google.com/apis/ajax/playground/?type=visualization#chartrangefilter_control
then at the very bottom of the javascript place this code under
"dashboard.draw" you can recreate.
dashboard.draw(data); //<-- leave this line, the rest is new
setTimeout(function () {drawChart(dashboard, data);}, 500);
}
function drawChart(dashboard, data) {
var chartHtml = $('#chart').html();
$('#chart').remove();
$('#dashboard').prepend(chartHtml);
dashboard.draw(data);
google.visualization.events.removeAllListeners(dashboard);
setTimeout(function () {drawChart(dashboard, data);}, 500);
}
On Friday, September 14, 2012 4:01:59 PM UTC-4, matt wrote:
>
> Hi Everyone,
>
> If I redraw a dashboard, over time a memory leak occurs. You can try this
> yourself by simply creating a recursive setTimeout and calling
> dashboard.draw();
>
> When you open up chrome's timeline view you'll see that the "event
> listeners" continually rise among other problems (like chrome inspector
> crashing).
>
> Is there something I am not doing?
>
> Is this a known issue?
>
> Thanks!
>
--
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/-/21hbYwgyr4gJ.
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.