Skip to content

Interface: DendrogramOptions ​

Options of dendrogramLayout. Lengths are layout units (CSS px).

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited from
collapsed?readonlyCollapsedInputCollapsed 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?readonlynumberRoom between two leaves, on top of the widest node. Default 20.-
orientation?readonlyTreeOrientationWhere the root is; the leaves line up on the opposite side. Default 'TB'.-
ranksep?readonlynumberLength 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?readonlyTreeSortOrder 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?readonlynumberLayout units per unit of graph.value. Default: from ranksep, see above.-

Released under the MIT License.