[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?

2nc8po8w  于 4个月前  发布在  Echarts
关注(0)|答案(1)|浏览(39)

Version

5.2.2

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

sqserrrh

sqserrrh1#

try this

You need to pay attention to two things:

  • update your data according to your content.
  • setOption again.

相关问题