Closed insecthole closed 3 years ago
lines使用effect后,clear(),方法无法清除干净
option = { xAxis: { min: 0, max: 200 }, yAxis: { min: 0, max: 200 }, color:"black", series: [{ coordinateSystem: 'cartesian2d', type: 'lines', data: [{ coords: [[0, 66], [122, 150]], }], effect: { show: true, color: "white" }, }] }
需要注意加载顺序,若是图标没有加载完成就执行了chart.clear();就不会起作用; 可以
setTimeout(function() { chart.clear(); //chart.dispose(); }, 10000);
同样遇到了这个问题,clear之后,线还在,但是像是残影一样
One-line summary [问题简述]
lines使用effect后,clear(),方法无法清除干净
Version & Environment [版本及环境]
Expected behaviour [期望结果]
ECharts option [ECharts配置项]
Other comments [其他信息]