It is currently Fri Apr 25, 2014 12:48 am Advanced search

HC 2.2.0 Bug chart.redraw()

Technical support, bug reports and more.

HC 2.2.0 Bug chart.redraw()

Postby haiku » Sun Feb 19, 2012 2:10 pm

Hi,
I notice a weird bug with the latest release: When i redraw my chart every 5 sec, the chart is "waving".
Here is my code ( And it worked with previous ver 2.1.8.)

Code: Select all
var Mychart1, options = {
chart: {
renderTo: 'container1',
backgroundColor: null,
         events: {
            load: function() {
            var series = this.series[0];
              setInterval(function() { 
               $.getJSON("programs/programdayfeed.php", function(data){
               json = eval(data);
                 x = json[0].LastTime;
                 y = json[0].LastValue;
                 a = json[1].MaxTime;
                 b = json[1].MaxPow;
               });
    series.addPoint([x, y]);
    chart.series[1].data[0].update([a, b],false,false,true);
    chart.series[1].data[1].update([x, y],false,false,true);
    chart.redraw();
               }, 5000);
            }
         }

},
...
haiku
 
Posts: 141
Joined: Tue Jul 26, 2011 10:22 am

Re: HC 2.2.0 Bug chart.redraw()

Postby adila » Tue Feb 21, 2012 4:36 pm

adila
 
Posts: 5
Joined: Fri Feb 17, 2012 7:10 pm

Re: HC 2.2.0 Bug chart.redraw()

Postby hfrntt » Fri Feb 24, 2012 12:48 am

Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am

Re: HC 2.2.0 Bug chart.redraw()

Postby haiku » Fri Feb 24, 2012 8:52 am

Thanks :)
haiku
 
Posts: 141
Joined: Tue Jul 26, 2011 10:22 am


Return to Highcharts Usage

Who is online

Users browsing this forum: Bing [Bot] and 6 guests