Interface: DendrogramOptions
Options of dendrogramLayout. Lengths are layout units (CSS px).
Extends
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
collapsed? | readonly | CollapsedInput | Collapsed nodes: node indices (any iterable), or a Uint8Array with one byte per node, non-zero for a collapsed one. The descendants of a collapsed node are left out of the layout (TreeLayoutResult.hidden), take no room, and are given the position of their nearest visible ancestor. Default none. | TreeOptions.collapsed |
links? | readonly | "straight" | "elbow" | Shape of the tree edges: see the file header. Default 'elbow'. | - |
nodesep? | readonly | number | Room between two leaves, on top of the widest node. Default 20. | - |
orientation? | readonly | TreeOrientation | Where the root is; the leaves line up on the opposite side. Default 'TB'. | - |
ranksep? | readonly | number | Length of one level. Without values every level is this high; with values it sets the default scale (the full height is ranksep times the number of levels). Default 50. | - |
sort? | readonly | TreeSort | Order of siblings: 'input' (node order for a tree input, link order otherwise), 'size' (by the number of nodes in the subtree, hidden ones included) or 'value' (by graph.value, nodes without one last). Default 'input'. | TreeOptions.sort |
sortOrder? | readonly | "descending" | "ascending" | Which way 'size' and 'value' sort. Default 'descending' (largest first). | TreeOptions.sortOrder |
valueScale? | readonly | number | Layout units per unit of graph.value. Default: from ranksep, see above. | - |