如果需要将Y轴倒过来
加入下面的语句即可
在yAxis中加入如下属性reversed: true,
如下所示
yAxis: [{ // Primary yAxis
labels: {
format: '{value}°C',
style: {
color: Highcharts.getOptions().colors[2]
}
},
title: {
text: 'Temperature',
style: {
color: Highcharts.getOptions().colors[2]
}
},
opposite: true,
<span style="color:#cc0000;">reversed: true,</span>
},