0
動的エリアグラフグラフを作成しようとしています。しかし、グラフが奇妙な方法で示す結果です。何の邪魔もせずにシリーズを得るという考えはありますか?ここでhttp://jsfiddle.net/mchc59nb/1/HIGHCHARTS Areaspline動的データグラフの結果が悪い
chart: {
type: 'areaspline',
animation: Highcharts.svg, // don't animate in old IE
marginRight: 10,
events: {
load: function() {
// set up the updating of the chart each second
var series = this.series[0];
setInterval(function() {
var x = (new Date()).getTime(), // current time
y = Math.random();
series.addPoint([x, y], true, true);
}, 1000);
}
}
},
series: [{
name: 'Random data',
type: 'areaspline',
data: (function() {
// generate an array of random data
var data = [],
time = (new Date()).getTime(),
i;
for (i = -19; i <= 0; i += 1) {
data.push({
x: time + i * 1000,
y: Math.random()
});
}
return data;
}())
}]
これはバグです。 5.0.3 /最新のgithubバージョンを使用するか、アニメーションを無効にしてください。 http://jsfiddle.net/mchc59nb/5/ – morganfree
@morganfree解決に感謝します。今はうまくいきます。 –