您可以xAxis
在类别中使用两个。例如:
xAxis: [{
opposite: true,
lineWidth: 0,
categories: ['Start', 'Category1', 'Category2', 'Category3', 'Category4', 'Balance']
}, {
linkedTo: 0,
lineWidth: 0,
categories: ['', 'Sub-Category 1', 'Liquid 1<br>Liquid 2', 'Gas 1<br>Gas 2', 'Solid 1', ''],
labels: {
rotation: 0,
y: -10
}
}]
谢谢。这就是我想要的。
如何为isSum bar 的负区域中的条赋予不同的颜色,为正的区域中的相同条赋予另一种颜色?
您可以使用
upColor
:api.highcharts.com/highcharts/series.waterfall.upColor和negativeColor
:api.highcharts.com/highcharts/series.waterfall.negativeColor属性。