-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Open
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Description
Version
5.4.3
Link to Minimal Reproduction
https://jsfiddle.net/undeletable/zrau5scd/
Steps to Reproduce
- Create tree chart.
- Expand/collapse some nodes, so that overall state is different from the initial one.
- Change chart zoom.
Current Behavior
Expanded/collapsed state of nodes is reset to the initial one. Obviously, that occurs because change of series value call triggers chart rerender. Note that this is the case even if reference to series remains unchanged (see https://jsfiddle.net/undeletable/z8cvfg23/).
Expected Behavior
According to #16743, dataZoom property is not supported for tree charts. So the only way to change zoom is to change series.zoom property in options. Obviously, this triggers chart rerender, but as a user I'd expect chart state to be persisted if only zoom changes - no matter if it's done using current way, or if any analog for dataZoom is introduced.
Environment
- OS:Linux Mint 19.3
- Browser:Google Chrome 119.0.6045.123
- Framework:Vanilla JS, ReactAny additional comments?
No response
Metadata
Metadata
Assignees
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.