修复容器尺寸修改后绘图区域没有改变的bug
This commit is contained in:
parent
3e494c6aec
commit
fc98719cb0
|
|
@ -18,7 +18,7 @@ export default function renderChart(props,isFirst) {
|
|||
document.getElementById('main').style.height = "${height}";
|
||||
document.getElementById('main').style.width = "${width}";
|
||||
myChart.clear();
|
||||
myChart.resize({width:${width},height:${height}});
|
||||
myChart.resize();
|
||||
myChart.setOption(${toString(props.option)});
|
||||
`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue