mirror of
https://gitee.com/antv/g6.git
synced 2024-12-15 18:11:08 +08:00
13 lines
661 B
Markdown
13 lines
661 B
Markdown
|
---
|
||
|
title: Dendrogram
|
||
|
order: 1
|
||
|
---
|
||
|
|
||
|
The leaves will be aligned on the same level. This algorithm does not consider the node size, which means all the nodes will be regarded as unit size with 1px. <br /> <img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*zX7tSLqBvwcAAAAAAAAAAABkARQnAQ' alt='dendrogram' width='300'/>
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Dendrogram is an appropriate layout method for tree data structure. Please use it with TreeGraph. As the demo below, you can deploy it in `layout` while instantiating Graph.
|
||
|
|
||
|
You can set different configurations for different nodes if the parameter is Function type. Please refer to the ducuments for more information.
|