Skip to content

Usage

Sankey data points define directed flows between named nodes.

{
from: 'Coal',
to: 'Electricity',
flow: 42
}
OptionDescription
colorFromScriptable color for the source node side.
colorToScriptable color for the target node side.
colorModeFlow coloring mode: gradient, from, or to.
labelsOptional display labels by node key.
priorityOptional ordering priority by node key.
columnOptional column assignment by node key.
nodeWidthNode rectangle width in pixels.
nodePaddingVertical padding between nodes.
sizeNode size strategy: min or max.