我有一个1小时间隔的烛台图表。我收到这样的数据:
[ [ 1400760000000,
0,
0,
0,
0
],
[ 1400763600000,
0,
0,
0,
0
],
[ 1400767200000,
20,
21,
20,
20
],
[ 1400770800000,
0,
0,
0,
0
],
[ 1400774400000,
19,
19,
19,
19
],
[ 1400778000000,
0,
0,
0,
0
]
]
或者我可以收到这样的数据:
[ [ 1400760000000,
null
],
[ 1400763600000,
null
],
[ 1400767200000,
20,
21,
20,
20
],
[ 1400770800000,
null
],
[ 1400774400000,
19,
19,
19,
19
],
[ 1400778000000,
null
]
]
有没有办法连接空值或零?
我已尝试在connectNulls
中将series
选项设置为true,如下所示:
series : [{
type : 'candlestick',
name : 'AAPL Stock Price',
connectNulls: true,
data : data
}]
但那没用。