我找到了零行的Document,但没有找到任何具体的解决方案。独自尝试,我找到了正确执行此操作的方法。
以及下面的代码,我们可以增加零线的不透明度。
valueAxis.renderer.baseGrid.strokeOpacity = 2;
这是JSON的JS版本,我们可以执行以下操作
{
"yAxes": [{
"type": "ValueAxis",
"renderer": {
"baseGrid": {
"strokeopacity": 2
}
}
}]
}