Hello.
I've just finished a little app that uses
"google.visualization.Gauge" and i update the values using
setInterval, just like the one in the example page:
var chart = new
google.visualization.Gauge(document.getElementById('chart_div'));
.
.
.
setInterval(function() {
data.setValue(0, 1, 40 + Math.round(60 * Math.random()));
chart.draw(data, options); //
}, 13000);
http://code.google.com/apis/visualization/documentation/gallery/gauge.html#Example.
If you visit that url, and check the process running it, you'll see
how RAM usage for this process starts growing and it never stops
growing...Is there any way i can work around this?
I've been reading something about closures (http://www.jibbering.com/
faq/faq_notes/closures.html#clSto) but didn't helped.
Any help or advice would be really appreciated
Thanks in advance.
BTW. I'm using GNU/Linux + chrome.
--
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.