Fishbone layout is a graphical layout method specifically designed to represent hierarchical data. By simulating the shape of a fishbone, it arranges data nodes according to their hierarchical structure, making the hierarchical relationships of the data clearer and more intuitive. The fishbone diagram layout is particularly suitable for datasets that need to display causal relationships, hierarchical structures, or classification information.
boolean
Whether invisible nodes participate in the layout
Takes effect when preLayout is true
(node: NodeData) => boolean
Nodes involved in the layout
boolean
Use pre-layout to calculate the layout before initializing the elements
Not applicable to pipeline layout
string
Layout type
boolean
Whether to run the layout in WebWorker
number
Iterations for iterable layouts
'RL' | 'LR' Default: ``
Layout direction
'RL'
From right to left, the fish head is on the right
'LR'
From left to right, the fish head is on the left
(node: NodeData) => number Default:
() = 60
Get rib separation
number
Layout height
number
Get horizontal spacing
number | [number, number] | Float32Array | [number, number, number] | ((node: NodeData) => number | [number, number] | Float32Array | [number, number, number] )
Node size
number
Get vertical spacing
number
Layout width