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

How to clear the old data? #178

Closed
stevelacerda7 opened this issue Apr 13, 2018 · 4 comments
Closed

How to clear the old data? #178

stevelacerda7 opened this issue Apr 13, 2018 · 4 comments

Comments

@stevelacerda7
Copy link

I'm having a hard time clearing out the old data. So, I have several echart components on a single page, and the data varies depending on the users selection of metrics. So, there can be 2 or 10 metrics. What I'm seeing is that when users deselect a metric, the data remains.

How do I re-initialize before re-rendering the component? Basically, I want a fresh canvas on each render.

@hustcc
Copy link
Owner

hustcc commented Apr 13, 2018

Set props notMerge with true, maybe can help you.

@stevelacerda7
Copy link
Author

Awesome, thank you so much. I was trying everything. Maybe you can add that to the readme???

@hustcc
Copy link
Owner

hustcc commented Apr 14, 2018

Can you help to submit a pr, and add it in the readme at QA chapter.

@pipihua666
Copy link

Set props notMerge with true, maybe can help you.

I have a problem now, notMerge=false, I set the data=[] of the series according to the name. The result cannot be cleared, but sometimes it can be cleared. What's the matter?

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

3 participants