Drilldown
native
Click a mark to drill into a child dataset
Matrix status native. Verification runtime · strong. ChartKit option: interaction.drilldown.
interaction.drilldown.children maps a category to a child JSON spec. Click, Enter, or Space swaps to that spec. Back and Escape pop. The server SVG lists the keys on data-ck-drill. An empty map warns CK3037. A child with no type warns CK3038. A key that is not a field warns CK3039.
Source: packages/core/src/interact.ts
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "line",
"data": [
{
"quarter": "Q1",
"units": 40
},
{
"quarter": "Q2",
"units": 55
}
],
"encoding": {
"x": "quarter",
"y": "units"
},
"a11y": {
"alt": "Units rose in Q2."
},
"size": {
"width": 640,
"height": 260
},
"interaction": {
"drilldown": {
"key": "quarter",
"children": {
"Q1": {
"version": "1",
"type": "bar",
"data": [
{
"name": "East",
"units": 12
},
{
"name": "West",
"units": 9
}
],
"encoding": {
"x": "name",
"y": "units"
},
"a11y": {
"alt": "East leads West in this category."
}
}
}
}
}
}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: interaction.drilldown.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | manual | Plugin.afterDatasetsDraw | mechanism · weak | chart.js/dist/types/index.d.ts:1051 |
| Recharts | manual | Customized | mechanism · weak | recharts/types/component/Customized.d.ts:26 |
| Apache ECharts | native | series.nodeClicktreemap/sunburst zoomToNode; universal transition for drilldown | types · strong | echarts/types/dist/shared.d.ts:11442 |
| Highcharts | native | drilldown.seriesdrilldown module | types · strong | highcharts/highcharts.d.ts:10666 |
| Plotly.js | partial | grep: leveltreemap/sunburst/icicle drill by click | grep · weak | @types/plotly.js/index.d.ts:265 |
| Nivo | manual | Line.layers | mechanism · weak | @nivo/line/dist/types/types.d.ts:171 |
| Victory | manual | VictoryBarProps.dataComponent | mechanism · weak | victory-core/lib/victory-util/common-props.d.ts:9 |
| visx | manual | Group | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | unknown | — | unverified · unknown | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | manual | TopLevelSpec.layer | mechanism · weak | vega-lite/build/spec/layer.d.ts:27 |
| AG Charts | native | grep: drilldowntreemap/sunburst click to drill | grep · weak | ag-charts-types/dist/types/src/main.d.ts:31 |
| amCharts 5 | native | grep: zoomablehierarchy zoomable / drill | grep · weak | @amcharts/amcharts5/index.d.ts:17 |
| Google Charts | native | grep: maxDepthTreeMap drill by click | grep · weak | @types/google.visualization/index.d.ts:1148 |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | none | — | absence · absence | — |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: drillDown | grep · weak | @antv/g2/lib/index.d.ts:156 |