Search code examples
amchartsamcharts4

Amchart 4: Remove grid line when value = 0


I created a multiple axis chart using Amchart 4, but the grid line for second valueAxis cannot remove even I set

valueAxis.renderer.grid.template.disabled = true;

enter image description here

Can someone help me to remove the line?


Solution

  • The zero line is controlled by the baseGrid. You have to disable that one too.

    valueAxis.renderer.baseGrid.disabled = true;
    

    Documentation