Skip to content

Interface: GraphTraceLayered ​

Options of arrangement: 'layered'. Lengths are layout units: CSS px at the size the graph is laid out for, before it is fitted to the plot area.

Properties ​

PropertyTypeDefault valueDescription
aspect?numberundefinedWidth over height that the parts of a graph that are not linked to each other are packed into. Default: the proportions of the plot area. Minimum: 0.05
clusterpadding?number12With clusters: the space between a frame and its nodes, in layout units. Minimum: 0
clusters?booleanfalseKeep the nodes of a group (node.group) together and draw a frame around each group, tinted in its color, with its name at the top.
edgesep?number12Free space between two long links that cross a layer side by side, in layout units. Minimum: 0
nodesep?number30Free space between two nodes of a layer, in layout units. Minimum: 0
rankdir?"TB" | "BT" | "LR" | "RL""TB"The direction the links point in: top to bottom ('TB'), bottom to top ('BT'), left to right ('LR') or right to left ('RL').
ranker?"network-simplex" | "tight-tree" | "longest-path""network-simplex"How nodes get their layer. 'network-simplex': the layers that make the links shortest in total. 'tight-tree': its starting point, faster and nearly as short. 'longest-path': every node as early as its links allow, the fastest, with longer links.
ranksep?number50Free space between two layers, in layout units. Minimum: 0
routing?"spline" | "polyline" | "orthogonal""spline"The shape of the links: smooth curves ('spline'), straight segments through the same points ('polyline') or horizontal and vertical segments ('orthogonal').

Released under the MIT License.