我剛剛寫了一個簡單的圖。在這個圖表中,線條在標記之前移動,這對我來說似乎很奇怪。我很確定這是關於動畫屬性,但我沒發現是什麼原因造成問題。Highcharts繪圖標記移動到樣條圖動畫的後面
您可以檢查我的代碼here
我設置的值用下面的代碼
function() {
// set up the updating of the chart each second
var series1 = this.series[0];
var series2 = this.series[1];
var series3 = this.series[2];
setInterval(function() {
var x = (new Date()).getTime(), // current time
y = Math.random();
series1.addPoint([x, y], true, true);
var x = (new Date()).getTime(), // current time
y = Math.random();
series2.addPoint([x, y], true, true);
var x = (new Date()).getTime(), // current time
y = Math.random();
series3.addPoint([x, y], true, true);
}, 1000);
}
謝謝塞巴斯蒂安,我完全忘了改變這一點。 – 2013-03-18 15:37:09
當然,沒問題;) – 2013-03-18 21:55:15