Skip to content
Advertisement

how do I make all kinds of grids invisible in echart?

enter image description here

There are some horizontal lines in the background and I need remove it. I go to the grid section in the document, but I did not find anything related to this.

Advertisement

Answer

It might not be intuitive, but grid is not about the ‘grid’ in the background, it’s rather for positionning your chart(s) in a grid system.

The grid in the background is formed by xAxis and yAxis splitLine parameter. Horizontal lines are from yAxis splitLine and vertical ones are from xAxis splitLine. You can personalise it as you want and you can show/hide it as well, using :

yAxis: { 
   ... // Your yAxis options
   splitLine: {show: false} 
}
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement