Skip to content

Interface: GraphTraceLinkBundle ​

Link bundling. Default: none.

Properties ​

PropertyTypeDefault valueDescription
compatibility?number0.6With force-directed bundling: how alike two links must be to attract each other (their directions, lengths and positions), 0 to 1. Lower values bundle more links, also ones that do not belong together. Range: 0 – 1
method?"none" | "auto" | "force" | "hierarchical""none"Draw links that run the same way together, as bundles, so that a dense graph shows its main streams. The nodes stay where they are. 'hierarchical': a link follows the path between its two ends in the hierarchy of the nodes, their groups (node.group) or, under a tree arrangement, the tree: links between the same two groups share their middle. Cheap, and at its best on 'circular' and 'radial'. 'force': links that lie alongside each other attract each other, for graphs without groups; costly, and refused above 20,000 links (the links are then drawn straight, with a warning). 'auto': 'hierarchical' when the nodes have groups or the arrangement is a tree, else 'force'. Links the arrangement routed itself ('layered', 'arc', 'hive', the edges of a tree) keep their routes. The bundles are computed after the layout and arrive a moment after the nodes (see worker); while a node is dragged, hierarchical bundles follow it and force-directed ones are drawn straight until it is dropped.
strength?number0.85How tightly the links are bundled: 0 leaves them straight, 1 pulls them all the way together. Range: 0 – 1

Released under the MIT License.