1. 程式人生 > >echarts圖形的位置佈局如何調整

echarts圖形的位置佈局如何調整

版權宣告:本文為章魚哥原創文章,若要轉載,請註明出處 https://blog.csdn.net/qq_40388552/article/details/85066103
我們一般使用grid來進行調整

grid: [{
       left: '10%',
       bottom: '10%',
       top: '10%',
       right: '10%'
   }],

餅圖調整方式

radius : [ '30%', '50%' ],//內外圓的大小
center : [ '45%', '60%' ],//距離左右,上下距離的百分比

map地圖調整方式

layoutCenter: ['48%', '50%'],//距離左右,上下距離的百分比
layoutSize:'145%',//map百分比大小