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的意思是网格即图标


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM