Skip to main content

Module sankey

Module sankey 

Source
Expand description

The layout of a sankey diagram: where each node goes and the ribbon of each flow, from a graph that must not go in circles. Pure logic, in the coordinates asked for.

Structs§

SankeyFlow
A flow as it landed: a ribbon from the side of a node to the side of another.
SankeyLayout
A diagram laid out.
SankeyLink
A flow from one node to another, given by their places in the list of nodes.
SankeyNode
A node as it landed.
SankeyStyle
How a graph is laid out.

Enums§

SankeyAlign
Which column a node goes to, among those its flows allow.
SankeyError
Why a graph has no layout.
SankeyHit
What is under a point of a diagram.

Functions§

check
Whether a graph can be laid out, without laying it out.
layout
Lays a graph of count nodes out inside area. Flows with no value are left out.