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

关于echarts对同一个图表更换数据长度导致canvas渲染BUG #2022

Closed
igitinode opened this issue Sep 11, 2015 · 2 comments
Closed

Comments

@igitinode
Copy link

image
此图是7天数据渲染....

image
此图是30天数据渲染

image
此图是长期渲染

image
该图是在长期渲染后点击7天渲染后出现的渲染图.
对于option的数据我前台console.log了一下 该数据是7天得数据,但是为什么图却不是7天得,观看该图可以看到,他只是把30天的前7天替换成了7天的数据.为何不是重新渲染?

急急急,据解决

@igitinode
Copy link
Author

望技术人员解释下
配上我的option配置

image

@igitinode
Copy link
Author

已解决:
myChart.clear(); // 重点
myChart.setOption(scope.option, true);

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

1 participant