我第一次接近高潮图,我用这种方式组合了两个系列图表
var options = {
chart: {
renderTo: 'container'
},
title: {
text: "Prova Combinato"
},
yAxis: {
min: 0,
title: {
text: 'PRECIPITAZIONI (mm)'
}
},
series: [{
name: 'Misure',
color: '#4572A7',
type: 'spline'
}, {
name: 'Temperature',
color: '#89A54E',
type: 'column'
}]
}
然后在两个ajax调用中,我以这种方式填充系列的数据
options.series [0] .data = series; var chart = new Highcharts.Chart(options);
options.series [1] .data = series2; var chart = new Highcharts.Chart(options);
但在布局方面,“spline”系列属于“专栏”系列 . 如何将“样条”放在“列”上 . 如何设置系列的等级?
非常感谢你 :)
1 回答
您需要串联使用index参数