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