big-r81 opened a new issue, #19601:
URL: https://github.com/apache/echarts/issues/19601

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to