4-调整图例和图标之间的距离

通过如下参数控制

legend: {
            orient: 'vertical',
            left: 'left',
            padding:[0,0,100,0],   //可设定图例[距上方距离,距右方距离,距下方距离,距左方距离]
            data: this.chartLegendData
          },
          grid: {
              top: '20%',
              left: '0%',
              right: '6%',
              bottom: '3%',
              containLabel: true
          },

 

legend的意思是图例

grid的意思是网格即图标

posted @ 2019-12-19 17:06  番茄土豆西红柿  阅读(1306)  评论(0编辑  收藏  举报
TOP