我想寻求Spline与Column Highstock Chart组合的解决方案。下面是我写的代码:
var chart = new Highcharts.StockChart({ 图表:{ renderTo:'容器', zoomType:'xy' },
xAxis: {
minTickInterval: 24 * 3600 * 1000,
ordinal: false
},
yAxis: [{ // Primary yAxis
title: {
text: 'Total Count'
},
height: 150,
lineWidth: 2
}, { // Secondary yAxis
title: {
text: 'Member Count'
},
height: 150,
opposite: true,
lineWidth: 2
}],
series: [{
type: 'column',
name: 'Bet Count',
data: bc,
dataGrouping: {
enabled: false
}
}, {
type: 'spline',
name: 'Bet Member Count',
data: bmc,
yAxis: 1
}]
});