apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.64k stars 19.61k forks source link

[Bug] How to get back to the same expanded state in Tree Diagram of echarts after making any changes in the nodes after expanding them? #20213

Open gss-akshat opened 3 months ago

gss-akshat commented 3 months ago

Version

5.2.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=tree-basic

Steps to Reproduce

Use the above link If you know how to do it, please comment with the solution

Current Behavior

The entire chart gets redrawn.

Expected Behavior

It is fine that it is getting redrawn, I just want to navigate to the same expanded state after it's getting redrawn.

Environment

- OS: windows
- Browser: chrome
- Framework: angular

Any additional comments?

No response

fuchunhui commented 3 months ago

try this

You need to pay attention to two things: