Function: sankeyLayout()
ts
function sankeyLayout(
nodes,
links,
opts?): SankeyLayoutResult;Defined in: charts/sankey.ts:77
Pure, side-effect-free Sankey layout. Assigns each node a layer by longest path from the sources, stacks nodes vertically by throughput, and traces each link as a bezier ribbon between its source and target edges.
Parameters
| Parameter | Type |
|---|---|
nodes | SankeyNode[] |
links | SankeyLink[] |
opts | SankeyLayoutOptions |