为什么给echarts设置指定的宽度和高度后,虽然 cavas 充分占用了相应的高度和宽度,但是里面的chart内容部分并没有占满相应的高度?比如绘制折线图的时候,我设置了 dom 元素 width:200px;height:100px; canvas的大小是200x100的,但是里面的绘图部分可能只有 200x50,感觉高度还有一半没有占满,有什么设置项可以解决这个问题么?谢谢
grid: {
top: 30,
bottom: 0,
left: 20,
right: 30,
containLabel: true
},
Most helpful comment
grid: {
top: 30,
bottom: 0,
left: 20,
right: 30,
containLabel: true
},