haiku
Posts: 166
Joined: Tue Jul 26, 2011 8:22 am
Contact: Website

HC 2.2.0 Bug chart.redraw()

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);
            }
         }

},
...
hfrntt
Posts: 6393
Joined: Mon Aug 30, 2010 8:41 am
Contact: Website

Re: HC 2.2.0 Bug chart.redraw()

Slawek Kolodziej
Highcharts support team
haiku
Posts: 166
Joined: Tue Jul 26, 2011 8:22 am
Contact: Website

Re: HC 2.2.0 Bug chart.redraw()

Thanks :)

Return to “Highcharts Usage”