I am also seeing the same problem when viewing an updating chart in
Internet Explorer. I have tried both the linechart and corechart
packages but both exhibit the same problems. Here is an example that
shows constantly increasing memory in IE:
<html>
<head>
<script type="text/javascript" src="https://www.google.com/
jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["linechart"]});
//google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(onLoad);
var chart;
var data;
var chart_options = {width: 580, height: 179};
var MAXROWS = 30;
function tester() {
data.addRow([Math.floor(Math.random()*50)]);
if (data.getNumberOfRows() > MAXROWS) {
data.removeRow(0);
}
chart.draw(data, chart_options);
}
function onLoad() {
data = new google.visualization.DataTable();
data.addColumn('number', 'Line1');
chart = new
google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, chart_options);
setInterval(tester, 1000);
}
</script>
</head>
<body>
<div id="chart_div"></div>
</body>
</html>
On Jul 15, 6:22 am, Massimo <[email protected]> wrote:
> Hi,
>
> I am using corechart package.
>
> Cheers,
>
> Massimo
>
> On Jul 14, 5:53 pm, Viz Kid <[email protected]> wrote:
>
>
>
> > Hi.
>
> > Can you tell us which packages are you loading, namely if you are using the
> > new charts (package 'corechart') or the older version (packages 'linechart'
> > and 'areachart')?
>
> > Best,
> > Viz Kid
>
> > On Tue, Jul 13, 2010 at 6:41 PM, Massimo <[email protected]> wrote:
> > > Hi,
>
> > > I am writing a web page that receive new data externally every second
> > > and draw an area chart.
>
> > > Every time i receive new data I update the DataTable and I draw again
> > > the chart.
>
> > > Everything is fine except that the memory used by the browser increase
> > > and increase reaching unacceptable values after some minutes. This
> > > thing doesn't happen at all if i use the annotated time line.
>
> > > Is it a bug?
>
> > > Cheers,
>
> > > Massimo
>
> > > --
> > > 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.