Skip to content

[Bug] treemapRootToNode doesn't properly work with leafDepth 1 #21010

Open
@HJK181

Description

@HJK181

Version

5.4.3

Link to Minimal Reproduction

https://codesandbox.io/p/devbox/beautiful-chebyshev-3lgfcx?workspaceId=ws_P5axcbk322QJHWwfpQvWGp

Steps to Reproduce

  1. create a treemap chart with a series option leafDepth: 1
  2. dispatch a treemapRootToNode action with a targetNodeId for a node with leaf depth > 1

Please see the setTimeout in the codesandbox index.js. If you remove "/child1" from the targetNodeId the action works. It also behaves correctly if you remove leafDepth: 1 from the series option.

Current Behavior

The svg renders nothing

Expected Behavior

The correct node is rendered, the same way as when you click on the nodes individually.

Environment

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