Skip to content

[Bug] Tree chart: expanded/collapsed state of parent nodes is reset on zoom #19289

@undeletable

Description

@undeletable

Version

5.4.3

Link to Minimal Reproduction

https://jsfiddle.net/undeletable/zrau5scd/

Steps to Reproduce

  1. Create tree chart.
  2. Expand/collapse some nodes, so that overall state is different from the initial one.
  3. 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, React

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions