有没有办法使用highcharts
[
[1270425600000,33.57],
[1270512000000,34.03],
[1270598400000,34.25],
[1270684800000,34.35],
[1270771200000,34.49],
[1271030400000,34.60],
[1271116800000,34.55],
[1271203200000,35.04],
[1271289600000,35.11],
[1271376000000,35.51],
[1271635200000,35.29],
[1271721600000,35.51], etc
我想基于此创建每月蜡烛。有没有办法用highcharts做到这一点?感谢任何帮助。
答案 0 :(得分:0)
Highstock具有数据分组功能 - series.dataGrouping - 您可以设置选项,因此数据将分为1个月的间隔。
series: [{
type: 'candlestick',
name: 'AAPL Stock Price',
data: data,
dataGrouping: {
forced: true,
units: [
['month', 1]
]
}
}]