Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

树形图处理大量数据时(叶子节点数约为2600),如果对展开层级做动态设置,页面报错 #577

Open
cangs44 opened this issue Nov 1, 2024 · 0 comments

Comments

@cangs44
Copy link

cangs44 commented Nov 1, 2024

img_v3_02g7_d06017e6-ee62-47b5-a174-0ad355ff0d2g

option的配置如下

return { tooltip: { trigger: 'item', triggerOn: 'mousemove', }, series: [ { type: 'tree', data: [data], top: '1%', left: '7%', bottom: '1%', right: '20%', symbolSize: 7, label: { position: 'left', verticalAlign: 'middle', align: 'right', fontSize: 9, }, leaves: { label: { position: 'right', verticalAlign: 'middle', align: 'left', }, }, emphasis: { focus: 'descendant', }, // initialTreeDepth: 1, initialTreeDepth: data?.nodeCount < 50 ? -1 : 1, // -1 表示展开所有节点 animationDuration: 550, animationDurationUpdate: 750, }, ], };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant