g6/packages/site/examples/tree/mindmap/index.en.md

13 lines
621 B
Markdown
Raw Normal View History

2023-02-02 10:31:36 +08:00
---
title: Mindmap
order: 2
---
The nodes with same depth will be placed on the same level. Difference from compactBox, Mindmap will not consider the node size. <br /> <img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*J1l5RofvbP0AAAAAAAAAAABkARQnAQ' alt='mindmap' width='250'/>
## Usage
Mindmap 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.