增加AmCharts中零线的笔画不透明度

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

enter image description here

我们可以看到,我有一个带有正和负条的条形图。在第0标度的中间,几乎看不到一条线。我想增加它的不透明度。因此,我想增加XAxis的不透明度或增加零线的不透明度]

amcharts amcharts4
1个回答
0
投票

我找到了零行的Document,但没有找到任何具体的解决方案。独自尝试,我找到了正确执行此操作的方法。

以及下面的代码,我们可以增加零线的不透明度。

valueAxis.renderer.baseGrid.strokeOpacity = 2;

这是JSON的JS版本,我们可以执行以下操作

{
  "yAxes": [{
    "type": "ValueAxis",
    "renderer": {
      "baseGrid": {
        "strokeopacity": 2
      }
    }
  }]
}
© www.soinside.com 2019 - 2024. All rights reserved.