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

还是无法clear #577

Open
4 tasks done
bboyee opened this issue Nov 19, 2019 · 3 comments
Open
4 tasks done

还是无法clear #577

bboyee opened this issue Nov 19, 2019 · 3 comments

Comments

@bboyee
Copy link

bboyee commented Nov 19, 2019

提问前应该做的事

请确保提问前做了以下事,将完成的项目的 [] 改为 [x]

需提供的信息

将符合项的 [] 改为 [x],并补充需要的信息:

简单描述问题:

想要重新触发图表的绘制动画,打算通过clear之后再setOption来进行重绘。但在调用clear时,echarts.js抛出如下异常:
image

代码片段

image

调试环境

微信开发者工具设置:
image
真机机型:iPhone 7

相关尝试

已按 #80 中的回复尝试过

预期效果:

调用clear后,清空图表

实际效果:

调用clear时,抛出上述异常

复现环境:

  • 在微信开发工具中存在该问题
  • 在真机上存在该问题
@jiandian
Copy link

jiandian commented Dec 9, 2019

同求

@loveCountry
Copy link

重新构建一个js替换echarts.js即可

@rcl4444
Copy link

rcl4444 commented Mar 5, 2020

@bboyee ,试试把图表的配置option设置成全局变量,然后在触发事件里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

No branches or pull requests

4 participants