hustcc / hustcc/echarts-for-react

Tree branch once opened does not retract back on closing it

Open
#564 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5k
Forks
650
PR merge metrics
No merged PRs in 30d

Description

![Screenshot from 2024-03-08 21-43-23](https://github.com/hustcc/echarts-for-react/assets/96688318/73518173-2aff-4d1f-ab40-645118b418c4)
When the app branch is opened
![Screenshot from 2024-03-08 21-43-56](https://github.com/hustcc/echarts-for-react/assets/96688318/144b0723-0183-49ad-bb22-b7214a227575)
When the app branch is closed

Here are the configuration props I used in my Echart
![code1](https://github.com/hustcc/echarts-for-react/assets/96688318/a47cb40f-c680-494f-a155-ab2308d53e6d)

Type of `data` object.
![code2](https://github.com/hustcc/echarts-for-react/assets/96688318/f9dd853d-ec7b-4d11-988f-8374f98611b8)
The `type` probably doesn't have anything to do with this, as I tried passing hard-coded data of same type and it rendered as I wanted, so, it's probably the inability to deal with complex large data which my wrapper package is generating.

Help me if I am missing any configuration for the same, I went through the docs for tree chart (https://echarts.apache.org/en/option.html#series-tree) but couldn't find any help in this particular case.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.