var myChart= echarts.init(document.getElementById("my_charts"));
myChart.setOption(option);
//假设实例的名字是myChart,在echats配置完实例以后,配置下面几行代码即可
window.onresize = function () {
myChart.resize();
}
04-26
691
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)