Sankey
native
Flows between nodes with width as value
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.type=sankey.
Source: chartkit:packages/core/src/generated/schema.ts:24
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "sankey",
"data": [
{
"s": "A",
"t": "B",
"y": 10
},
{
"s": "B",
"t": "C",
"y": 6
}
],
"encoding": {
"source": "s",
"target": "t",
"y": "y"
},
"a11y": {
"alt": "Flow leaves B."
},
"size": {
"width": 640,
"height": 260
}
}Other libraries
Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: type.sankey.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | plugin | — | npm · weak | — |
| Recharts | native | Sankey | types · strong | recharts/types/chart/Sankey.d.ts:225 |
| Apache ECharts | native | series.type=sankey | types · strong | echarts/types/dist/shared.d.ts:11176 |
| Highcharts | native | series.type=sankey | types · strong | highcharts/options/abands.d.ts:1386 |
| Plotly.js | native | trace.type=sankey | types · strong | plot-schema.json#traces.sankey |
| Nivo | native | Sankey | types · strong | @nivo/sankey/dist/types/Sankey.d.ts:3 |
| Victory | none | — | absence · absence | — |
| visx | native | Sankey | types · strong | @visx/sankey/lib/Sankey.d.ts:52 |
| ApexCharts | plugin | —separate ApexSankey product | npm · weak | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | manual | grep: render | mechanism · weak | @observablehq/plot/src/scales.d.ts:166 |
| Vega-Lite | manual | TopLevelSpec.layer | mechanism · weak | vega-lite/build/spec/layer.d.ts:27 |
| AG Charts | native ent | series.type=sankey | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:86 |
| amCharts 5 | native | grep: Sankey | grep · weak | @amcharts/amcharts5/package.json:29 |
| Google Charts | native | Sankey | types · strong | @types/google.visualization/index.d.ts:1783 |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native pro | SankeyChart | types · strong | @mui/x-charts-pro/SankeyChart/SankeyChart.d.mts:31 |
| Mermaid (chart-ish diagrams only) | native | MermaidConfig.sankey | types · strong | mermaid/dist/config.type.d.ts:233 |
| AntV G2 | native | MarkTypes=sankey | types · strong | @antv/g2/lib/spec/mark.d.ts:13 |