Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lines使用effect后 无法clear() #8225

Closed
insecthole opened this issue Apr 25, 2018 · 2 comments · Fixed by #15088
Closed

lines使用effect后 无法clear() #8225

insecthole opened this issue Apr 25, 2018 · 2 comments · Fixed by #15088

Comments

@insecthole
Copy link

One-line summary [问题简述]

lines使用effect后,clear(),方法无法清除干净

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:4.04
  • Browser version [浏览器类型和版本]:所有浏览器
  • OS Version [操作系统类型和版本]:win10 64

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

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"

            },
        }]
}

Other comments [其他信息]

@Adelaide1014
Copy link

需要注意加载顺序,若是图标没有加载完成就执行了chart.clear();就不会起作用;
可以

setTimeout(function() {
    chart.clear();
    //chart.dispose();
}, 10000);

@chj-damon
Copy link

同样遇到了这个问题,clear之后,线还在,但是像是残影一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants