Skip to main content

Module shape

Module shape 

Source

Structs§

Arc
ArcData
Area
Bar
Line
Pie
RadialLine
A radial line generator, like d3.lineRadial.
Sankey
The Sankey layout generator.
SankeyGraph
The computed Sankey layout.
SankeyLink
An input link of a Sankey diagram.
SankeyLinkLayout
A link with computed layout.
SankeyNodeLayout
A node with computed layout (d3-sankey’s computed node fields).
Stack
StackPoint
Represents a stacked series data point with lower and upper values
StackSeries
Represents a stacked series

Enums§

BarAlignment
Alignment of bars within a Bar shape, controlling both the orientation (vertical vs horizontal) and the side where the baseline lives.
SankeyAlign
Horizontal alignment of nodes across layers.
SankeyError
A reason a Sankey layout could not be computed.
SankeyValueScale
How flow values map to node heights and ribbon widths.

Functions§

sankey_link_path
Build the filled ribbon path for a link — the equivalent of d3-sankey’s sankeyLinkHorizontal(): a horizontal cubic bezier with control points at the horizontal midpoint, thickened to the per-end link widths (clamped to min_width so tiny flows stay visible).