我可以使用 Highcharts/Highstock 制作一个没有时间范围的 ohlc 和线图组合的图吗?
问问题
758 次
1 回答
2
您应该使用两个系列(第一个 ohlc 和第二行)。
series: [{
type: 'ohlc',
data: [
[1147996800000, 63.26, 64.88, 62.82, 64.51],
[1148256000000, 63.87, 63.99, 62.77, 63.38],
[1148342400000, 64.86, 65.19, 63.00, 63.15],
[1148428800000, 62.99, 63.65, 61.56, 63.34],
[1148515200000, 64.26, 64.45, 63.29, 64.33],
[1148601600000, 64.31, 64.56, 63.14, 63.55],
[1148947200000, 63.29, 63.30, 61.22, 61.22],
[1149033600000, 61.76, 61.79, 58.69, 59.77]
]
}, {
type: 'line',
data: [
[1147996800000, 63.26],
[1148256000000, 63.87],
[1148342400000, 64.86],
[1148428800000, 62.99],
[1148515200000, 64.26],
[1148601600000, 64.31],
[1148947200000, 63.29],
[1149033600000, 61.76]
]
}]
禁用导航器:http: //api.highcharts.com/highstock#navigator.enabled 范围选择器:http ://api.highcharts.com/highstock#rangeSelector.enabled
于 2013-05-17T08:20:11.163 回答