sankey library
Classes
- Sankey
- A Sankey layout generator that computes the positions and dimensions for the nodes and links in a Sankey diagram
- SankeyGraph
- A simple container for the computed Sankey diagram graph
Functions
-
sankeyCenter(
SankeyNode node, int n) → int - Centers the node based on its incoming/outgoing relationships
-
sankeyJustify(
SankeyNode node, int n) → int - Aligns the node using a justifying algorithm
-
sankeyLeft(
SankeyNode node, int n) → int -
Positions the node at the left side, using its
depth
as the column index -
sankeyRight(
SankeyNode node, int n) → int -
Positions the node at the right side of the diagram by subtracting its
height
from the total number of columns
Typedefs
- NodeAlign = int Function(SankeyNode node, int n)
-
Signature for an alignment function, used to compute the horizontal
placement of a node. It takes a SankeyNode and the total number of columns
(or maximum depth)
n
, returning the column index where the node should be placed