前言
看下文档就可以知道问题出哪了,在setOption
的时候配置下notMerge
就好了,详细的可以访问文档自行查看;
setOption: https://echarts.apache.org/zh/api.html#echartsInstance.setOption
步骤
this.chartInstance.setOption(this.option, true);
render() {
this.chartInstance.setOption(this.option, true);
window.addEventListener("resize", () => {
this.chartInstance.resize();
});
},
标签:option,Echarts5.0,true,setOption,点击,按钮,chartInstance,resize
From: https://www.cnblogs.com/wangyang0210/p/17987807