Flot 折线图 - 为什么?
Flot break line chart - why?
对于以下数据,我收到了不连续的折线图。
有行
07:10..07:50
,
08:10..08:50
,
09:10..09:50
、
但 Flot 忽略了 08:00, 09:00
处的值(为什么?)
并且不连接来自 07:50 to 08:10
的线路(为什么?)
在什么情况下 Flot 决定 "break" 折线图?
07:20 10/03/2016 25.4 24.2 24.7
07:30 10/03/2016 25.2 23.9 24.3
07:40 10/03/2016 25.1 23.8 24.3
07:50 10/03/2016 25.1 23.8 24.3
08:00 10/03/2016 25.1 23.8 24.3
08:10 10/03/2016 25.1 23.9 24.3
08:20 10/03/2016 24.9 24.2 24.3
08:30 10/03/2016 24.9 24.2 24.3
08:40 10/03/2016 24.9 24.2 24.3
08:50 10/03/2016 25 24.5 24.6
09:00 10/03/2016 25.1 24.6 24.7
09:10 10/03/2016 25.2 24.6 24.8
09:20 10/03/2016 25.2 24.6 24.8
09:30 10/03/2016 25.2 24.6 24.7
09:40 10/03/2016 25.2 24.6 24.7
找到了 - 它发生在 CSV 中的 hours\minutes 为“0”并且我的代码预期为“00”时,
-> 没有生成 UTC,
-> 空值,
-> 图表换行符。
我只在文本编辑器中打开 csv 时才看到它。
在 Excel 中打开时,Excel 似乎将值设置为正确的格式!
v 7:50, 10/3/2016,25.1,23.8,24.3,52.9,0.0,24.0
x 8:0, 10/3/2016,25.1,23.8,24.3,54.2,0.0,24.0 <- the chart breaks.
v 8:10, 10/3/2016,25.1,23.9,24.3,52.8,0.0,24.1
v 8:50, 10/3/2016,25.0,24.5,24.6,49.6,0.0,24.5
x 9:0, 10/3/2016,25.1,24.6,24.7,48.3,0.0,24.6 <- the chart breaks.
v 9:10, 10/3/2016,25.2,24.6,24.8,47.6,0.0,24.7
v 9:20, 10/3/2016,25.2,24.6,24.8,47.1,0.0,24.7
对于以下数据,我收到了不连续的折线图。
有行
07:10..07:50
,
08:10..08:50
,
09:10..09:50
、
但 Flot 忽略了 08:00, 09:00
处的值(为什么?)
并且不连接来自 07:50 to 08:10
的线路(为什么?)
在什么情况下 Flot 决定 "break" 折线图?
07:20 10/03/2016 25.4 24.2 24.7
07:30 10/03/2016 25.2 23.9 24.3
07:40 10/03/2016 25.1 23.8 24.3
07:50 10/03/2016 25.1 23.8 24.3
08:00 10/03/2016 25.1 23.8 24.3
08:10 10/03/2016 25.1 23.9 24.3
08:20 10/03/2016 24.9 24.2 24.3
08:30 10/03/2016 24.9 24.2 24.3
08:40 10/03/2016 24.9 24.2 24.3
08:50 10/03/2016 25 24.5 24.6
09:00 10/03/2016 25.1 24.6 24.7
09:10 10/03/2016 25.2 24.6 24.8
09:20 10/03/2016 25.2 24.6 24.8
09:30 10/03/2016 25.2 24.6 24.7
09:40 10/03/2016 25.2 24.6 24.7
找到了 - 它发生在 CSV 中的 hours\minutes 为“0”并且我的代码预期为“00”时,
-> 没有生成 UTC,
-> 空值,
-> 图表换行符。
我只在文本编辑器中打开 csv 时才看到它。
在 Excel 中打开时,Excel 似乎将值设置为正确的格式!
v 7:50, 10/3/2016,25.1,23.8,24.3,52.9,0.0,24.0
x 8:0, 10/3/2016,25.1,23.8,24.3,54.2,0.0,24.0 <- the chart breaks.
v 8:10, 10/3/2016,25.1,23.9,24.3,52.8,0.0,24.1
v 8:50, 10/3/2016,25.0,24.5,24.6,49.6,0.0,24.5
x 9:0, 10/3/2016,25.1,24.6,24.7,48.3,0.0,24.6 <- the chart breaks.
v 9:10, 10/3/2016,25.2,24.6,24.8,47.6,0.0,24.7
v 9:20, 10/3/2016,25.2,24.6,24.8,47.1,0.0,24.7