如何为高图表中的堆积条添加背景阴影

问题描述 投票:-1回答:1

enter image description here

就像上图中一样,我正在尝试在条形图上添加背景阴影。我们如何实现呢?

highcharts
1个回答
0
投票

您可以使用plotBands

yAxis: {
  plotBands: [{
    from: 0,
    to: 10,
    color: '#828282'
  }, {
    from: 10,
    to: 20,
    color: '#949494'
  }, ...]
}

实时演示: http://jsfiddle.net/BlackLabel/6m4e8x0y/4779/

API参考: https://api.highcharts.com/highcharts/yAxis.plotBands

© www.soinside.com 2019 - 2024. All rights reserved.