```
var twChart = echarts.init(document.getElementById('twChart'));
twChart.setOption(option);
setTimeout(function (){
window.onresize = function () {
twChart.resize();
}
},200)
```
```
var twChart = echarts.init(document.getElementById('twChart'));
twChart.setOption(option);
setTimeout(function (){
window.onresize = function () {
twChart.resize();
}
},200)
```