我想用candlestick
type 制作一个动态图表,我尝试通过添加type: 'candlestick'
到系列来编辑动态示例,但它不起作用。
问问题
3519 次
1 回答
3
那是因为您将线数据传递给烛台 OHLC 需要将其数据作为数组数组,内部数组上的每个元素都有 5 个值
[x,o,h,l,c]
series.addPoint([
x,
Math.random()*100,
Math.random()*100,
Math.random()*100,
Math.random()*100
], true, true);
data.push([
time + i * 1000,
Math.random()*100,
Math.random()*100,
Math.random()*100,
Math.random()*100
]);
API 参考 @ http://api.highcharts.com/highstock#series.data jsFiddle @ http://jsfiddle.net/jugal/SykAf/
于 2012-09-10T11:00:23.507 回答