g6/packages/site/docs/apis/layout/DendrogramLayoutOptions.en.md
2023-11-09 17:50:23 +08:00

2.2 KiB

title order
Dendrogram 14

Dendrogram arranges all the leaves on the same level. It is appropriate for hierarchical clustering. It does not consider the node size, which will be regarded as 1px.

img

direction

Type: String
Options: 'LR' | 'RL' | 'TB' | 'BT' | 'H' | 'V'
Default: 'LR'
Required: false
Description: The direction of layout.

  • TB —— Root is on the top, layout from the top to the bottom
img
  • BT —— Root is on the bottom, layout from the bottom to the top
img
  • LR —— Root is on the left, layout from the left to the right
img
  • RL —— Root is on the right, layout from the right to the left
img
  • H —— Root is on the middle, layout in horizontal symmetry.
img
  • V —— Root is on the middle, layout in vertical symmetry.
img

nodeSep

Type: Number
Default: 0
Required: false
Description: Node separation

rankSep

Type: Number
Default: 0
Required: false
Description: Level separation

radial

Type: Boolean
Default: false
Required: false
Description: Wheter layout the graph in radial style. If radial is true, we recommend to set direction to 'LR' or 'RL':
img