echarts折线图背景空白太大

1、没有调间距的效果:
在这里插入图片描述

2、更改间距后的效果:
在这里插入图片描述
3、其实只要更改grid定位值就行了,上代码:

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

4、将代码copy到option里面就行了
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44949068/article/details/131413448