Skip to content

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

@cangs44

Description

@cangs44

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, }, ], };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions