Hierarchical data input
native
Nested/parent-child data for tree types
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.path, ChartKitChartSpecV1.encoding.parent.
Nested children, encoding.path, or encoding.id plus encoding.parent. A missing parent value is the sum of its leaves.
Source: chartkit:packages/core/src/hierarchy.ts:1
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "treemap",
"data": [
{
"name": "Ads",
"value": 40,
"children": [
{
"name": "Search",
"value": 25
},
{
"name": "Social",
"value": 15
}
]
}
],
"encoding": {
"x": "name",
"y": "value"
},
"a11y": {
"alt": "Search is most of Ads."
},
"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: data.hierarchy.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | native | Treemap.data | types · strong | recharts/types/chart/Treemap.d.ts:60 |
| Apache ECharts | native | series.datatreemap/sunburst/tree nested children | types · strong | echarts/types/dist/shared.d.ts:11188 |
| Highcharts | native | grep: parentpoint.parent ids | grep · weak | highcharts/highcharts.src.d.ts:1100 |
| Plotly.js | native | trace.parents, trace.ids | types · strong | plot-schema.json#traces.{icicle,sunburst,treemap}.attributes.parents |
| Nivo | native | TreeMap.data | types · strong | @nivo/treemap/dist/types/types.d.ts:84 |
| Victory | unknown | — | conflict · unknown | — |
| visx | native | grep: hierarchyd3-hierarchy | grep · weak | @visx/visx/package.json:54 |
| ApexCharts | unknown | — | conflict · unknown | — |
| Tremor (npm) | unknown | — | conflict · unknown | — |
| Observable Plot | native | grep: stratifytree() transform from path strings | grep · weak | @observablehq/plot/src/marks/tree.d.ts:36 |
| Vega-Lite | none | — | absence · absence | — |
| AG Charts | native | series.childrenKey | types · strong | ag-charts-types/dist/types/src/series/standalone/treemapOptions.d.ts:125 |
| amCharts 5 | native | grep: childDataField | grep · weak | @amcharts/amcharts5/examples/hierarchy-sunburst/config.json:7 |
| Google Charts | native | grep: parentTreeMap parent column | grep · weak | @types/google.visualization/index.d.ts:1625 |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | unknown | — | conflict · unknown | — |
| Mermaid (chart-ish diagrams only) | native | MermaidConfig.treeView | types · strong | mermaid/dist/config.type.d.ts:237 |
| AntV G2 | native | grep: children | grep · weak | @antv/g2/lib/composition/view.d.ts:5 |