###內部圖表大小是與div容器大小位置相關的,如果想調整圖表大小位置,調整div的屬性就可以了###
###如果是想調整圖表與div間上下左右留白,則設置grid屬性就可以了###
如圖所示:
具體如下:
myChart.setOption({ title:{ text:"價格指數" }, grid:{ x:25, y:45, x2:5, y2:20, borderWidth:1 }, ....
我在網上還找了一個其他的說法(但是我的圖表沒有起效,但是如果上面的方法不起效的話,也還是可以試試的,僅作收藏參考)
具體如下:
myChart.setOption({ title:{ text:"價格指數" }, grid:{ left:'8%', right:'0', bottom:'1%', containLabel:true }, ....

