[Bug] Sunburst diagram resets to the root view if data is updated
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
5.4
### Link to Minimal Reproduction
https://jsfiddle.net/eLojgs21/
### Steps to Reproduce
1. Click on a (sub-) segment in the sunburst chart, e.g. "Uncle Leo"
2. select a category in the legend
### Current Behavior
If zoomed into a sunburst diagram and selecting a category, the (root) view is resetted and gets zoomed to the root level.
### Expected Behavior
This behavior is triggered, through setting new data with the `setOption` function. Afterwards the function [optionUpdated](https://github.com/apache/echarts/blob/031a908fafaa57e2277b2f720087195925ec38cf/src/chart/sunburst/SunburstSeries.ts#L200) is triggered and resets the root view of the component.
I don't know if it's really a bug and/or a feature request, but it should be possible to update the data and don't change the actual view of the diagram. Maybe there is a workaroudn for this, which I don't know.
### Environment
```markdown
- OS: Windows
- Browser: Chrome 120.0.6099.71
- Framework: -
```
### Any additional comments?
Is there a way to show the updated data without the reset of the view?
Contributor guide
Assessment
This issue has not been assessed yet.