I have a real time line graph with new data points adding to the series as time passes by.I want to limit this to one hour window and shift plot to the left.At any time plot shoud show data points of one hour and navigator handle max interval should be one hour as well.How to achive this?
2 に答える
0
HopeFully私はあなたの問題を正しく理解しました
サンプルの場合、10秒間だけ新しいエントリを作成しましたが、setTimeout関数でその値を適切な必要な値に置き換えるだけです。
ナビゲーターを左にシフトするには、これをコードに追加するだけです
xAxis: {min:0, max:3600000}
このフィドルをチェックしてください
于 2013-03-14T12:00:32.007 に答える
0
afterSetExtremes
(リンク) を使用して、必要に応じて極値を変更できます。this.min
したがって、間隔をチェックし ( とを比較this.max
)、適切な極値を設定します (間隔が大きすぎるか小さすぎる場合)。
于 2013-03-14T11:59:06.507 に答える