随着时间的推移,我有一系列数据值(由计数确定)。以n分钟间隔(计数 x 间隔)提供数据;通常数据将是 96 x 15(96 个 15 分钟间隔以给出 24 小时)。间隔的长度和计数都是动态的。数据系列可以是多种类型的数据;它可以是多种格式,例如 0.000123 或 1.23 或 198763.0000089675。
我希望我的 xaxis 以 1 小时为间隔显示时间(屏幕空间很小,因此可能需要 2 小时的间隔)。我有这个:
xAxis: {
type : 'datetime',
title: {
text: 'Time ('+period+')'
},
dateTimeLabelFormats: {
minute: '%H:%M',
hour: '%H:%M'
}
}
和这样的系列:
[15999.999999999996,14999.999999999996,15999.999999999996,14999.999999999996,13999.999999999996,15999.999999999996,17999.999999999993,17999.999999999993,16999.999999999993,15999.999999999996,16999.999999999993,14999.999999999996,14999.999999999996,13999.999999999996,14999.999999999996,14999.999999999996,14999.999999999996,14999.999999999996,15999.999999999996,19999.999999999993,23999.999999999993,27999.999999999993,24999.999999999993,22999.999999999993,21999.999999999993,23999.999999999993,29999.999999999993,26999.999999999993,29999.999999999993,31999.999999999993,34999.999999999985,31999.999999999993,31999.999999999993,33999.999999999985,34999.999999999985,32999.999999999985,32999.99999999998,32999.99999999997,32999.99999999997,32999.99999999997,32999.999999999985,32999.999999999985,34999.999999999985,32999.999999999985,32999.999999999985,32999.999999999985,35999.999999999985,32999.999999999985,35999.999999999985,32999.999999999985,33999.999999999985,30999.999999999993,28999.999999999993,31999.999999999993,32999.999999999985,33999.999999999985,30999.999999999993,32999.999999999985,32999.999999999985,30999.999999999993,30999.999999999993,31999.999999999993,31999.999999999993,29999.999999999993,29999.999999999993,30999.999999999993,30999.999999999993,26999.999999999993,25999.999999999993,27999.999999999993,29999.999999999993,27999.999999999993,26999.999999999993,25999.999999999993,26999.999999999993,27999.999999999993,25999.999999999993,28999.999999999993,29999.999999999993,26999.999999999993,24999.999999999993,18999.999999999993,17999.999999999993,16999.999999999993,16999.999999999993,15999.999999999996,16999.999999999993,15999.999999999996,14999.999999999996,15999.999999999996,15999.999999999996,14999.999999999996,14999.999999999996,15999.999999999996,15999.999999999996,14999.999999999996]
但 xaxis 上的值是:
00:00:00.020 00:00:00.040 00:00:00.020 00:00:00.020
我已经浏览了 highcharts API,但我无法确定它如何处理时间序列。
如何告诉 highcharts 正确显示时间?