对于以下数据,我收到了不连续折线图。
有行
[post_thumbnail id="12"]
,
07:10..07:50
,
08:10..08:50
,
但是Flot会忽略09:10..09:50
处的值(为什么?)
并且不连接08:00, 09:00
的行(为什么?)
在什么情况下,Flot决定"打破"折线图?
07:50 to 08:10
答案 0 :(得分:0)
发现它 - 它发生在CSV中的小时\分钟是" 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