flot 如何避免 x 轴重复日期值
flot how to avoid x-axis repeating date values
我有一个 flot 折线图,其中 x 值重复,但我不太明白为什么。我该如何解决这个问题?
我的 x 轴定义为...
chartOptions = {
xaxis: {
mode: "time",
timeformat: "%d/%m/%y",
//tickSize: [1, "day"],
//tickLength: 2
},
我的数据是...
[1424005200000,20795],[1424091600000,20151],[1424178000000,22448],[1424264400000,27000],[1424350800000,30622],[1424437200000,30844],[1424523600000,23139]
使用:minTickSize: [1,"day"]
所以这一天将在图表中出现一次。
chartOptions = {
xaxis: {
mode: "time",
timeformat: "%d/%m/%y",
minTickSize: [1,"day"],
//tickLength: 2
},
我有一个 flot 折线图,其中 x 值重复,但我不太明白为什么。我该如何解决这个问题?
我的 x 轴定义为...
chartOptions = {
xaxis: {
mode: "time",
timeformat: "%d/%m/%y",
//tickSize: [1, "day"],
//tickLength: 2
},
我的数据是...
[1424005200000,20795],[1424091600000,20151],[1424178000000,22448],[1424264400000,27000],[1424350800000,30622],[1424437200000,30844],[1424523600000,23139]
使用:minTickSize: [1,"day"]
所以这一天将在图表中出现一次。
chartOptions = {
xaxis: {
mode: "time",
timeformat: "%d/%m/%y",
minTickSize: [1,"day"],
//tickLength: 2
},