初始化echarts:var myChart = echarts.init(document.getElementById("chartWrapper"), "macarons");但是在其他模块中想要根据该DOM元素获取echarts: var compareChart = echarts.getInstanceByDom(document.getElementById("chartWrapper"));
compareChart.clear();报错:Cannot read property 'clear' of undefined(…)请问如何通过容器正确获取echarts实例?
添加回答
举报
0/150
提交
取消