Features · data

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.

Search is most of Ads.Search is most of Ads.Ads / Search: 25 · 62.5% of parent · 62.5% of totalSearch25Ads / Social: 15 · 37.5% of parent · 37.5% of totalSocial15SearchSocial
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
RechartsnativeTreemap.datatypes · strongrecharts/types/chart/Treemap.d.ts:60
Apache EChartsnativeseries.datatreemap/sunburst/tree nested childrentypes · strongecharts/types/dist/shared.d.ts:11188
Highchartsnativegrep: parentpoint.parent idsgrep · weakhighcharts/highcharts.src.d.ts:1100
Plotly.jsnativetrace.parents, trace.idstypes · strongplot-schema.json#traces.{icicle,sunburst,treemap}.attributes.parents
NivonativeTreeMap.datatypes · strong@nivo/treemap/dist/types/types.d.ts:84
Victoryunknown—conflict · unknown—
visxnativegrep: hierarchyd3-hierarchygrep · weak@visx/visx/package.json:54
ApexChartsunknown—conflict · unknown—
Tremor (npm)unknown—conflict · unknown—
Observable Plotnativegrep: stratifytree() transform from path stringsgrep · weak@observablehq/plot/src/marks/tree.d.ts:36
Vega-Litenone—absence · absence—
AG Chartsnativeseries.childrenKeytypes · strongag-charts-types/dist/types/src/series/standalone/treemapOptions.d.ts:125
amCharts 5nativegrep: childDataFieldgrep · weak@amcharts/amcharts5/examples/hierarchy-sunburst/config.json:7
Google Chartsnativegrep: parentTreeMap parent columngrep · weak@types/google.visualization/index.d.ts:1625
uPlotnone—absence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsunknown—conflict · unknown—
Mermaid (chart-ish diagrams only)nativeMermaidConfig.treeViewtypes · strongmermaid/dist/config.type.d.ts:237
AntV G2nativegrep: childrengrep · weak@antv/g2/lib/composition/view.d.ts:5