echarts tree树形图数据、层级过多无法正常关闭展开子节点,也没有动画

ukqbszuj  于 2022-11-02  发布在  Echarts
关注(0)|答案(2)|浏览(339)

Version

5.2.2

https://jsfiddle.net/watchingfun/zfg12ydp/1/

Steps to reproduce

删除数据任意子节点的任意一项才能正常展开关闭tree

What is expected?

数据并没有特别的,在官方上的在线例子上编辑也不能正常关闭展开子节点

What is actually happening?

根据提供的数据不能正常展开关闭,我使用的官网的例子,只是替换了数据,数据的name我也做了去重, https://echarts.apache.org/examples/en/editor.html?c=tree-basic

原始数据更大,由于不清楚数据还是配置原因,我只能手动一级一级确认,但是现在出现了这种情况,删除任意叶子节点元素就好了。我没有看出数据有什么特别的。

7tofc5zh

7tofc5zh1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it containsa minimum reproducible demoand necessaryimagesto illustrate. Otherwise, our committers will ask you to do so.

  • A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list .

Have a nice day! 🍵

vcudknz3

vcudknz32#

@watchingfun It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

Tree tree graph data, too many levels can not properly shut down the expansion child nodes, there is no animation

BODY

Version

5.2.2

https://jsfiddle.net/watchingfun/zfg12ydp/1/

Steps to reproduce

Delete any one of the data's child nodes in order to expand normally and close the tree

What is expected?

The data is not special, and editing on official online examples does not shut down the expansion child nodes properly

What is actually happening?

According to the data provided can not be normally expanded off, I used the official website example, just replaced the data, the data name I also did to re-weight, https://echarts.apache.org/examples/en/editor.html?c=tree-basic

The raw data is larger, because it is not clear whether the data or configuration reasons, I can only manually confirm at the first level, but now that this has happened, delete any leaf node elements would be fine. I don't see anything special about the data.

相关问题