Echarts line chart background blank is too large

1. There is no effect of adjusting spacing:
insert image description here

2. The effect after changing the spacing:
insert image description here
3. In fact, just change the grid positioning value, and the code is as follows:

        grid: {
    
    
          top: '20px',
          left: '20px',
          right: '20px',
          bottom: '20px',
          containLabel: true
        },

4. Just copy the code into the option
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44949068/article/details/131413448
Recommended