Zoom (wheel / pinch / drag)
native
Zoom into a range
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.interaction.zoom=x.
'none' | 'x' | 'xy' (client interact)
Source: chartkit:packages/core/src/generated/schema.ts:1149
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": {
"zoom": "x"
}
}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.zoom.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | plugin | — | npm · weak | — |
| Recharts | none | —Brush only | absence · absence | — |
| Apache ECharts | native | dataZoom | types · strong | echarts/types/dist/shared.d.ts:12589 |
| Highcharts | native | chart.zooming | types · strong | highcharts/highcharts.d.ts:6692 |
| Plotly.js | native | layout.dragmode=zoom, config.scrollZoom | types · strong | plot-schema.json#layout.layoutAttributes.dragmode |
| Nivo | unknown | — | conflict · unknown | — |
| Victory | native | VictoryZoomContainer | types · strong | victory-zoom-container/lib/victory-zoom-container.d.ts:81 |
| visx | native | Zoom | types · strong | @visx/zoom/lib/Zoom.d.ts:60 |
| ApexCharts | native | chart.zoom.enabled | types · strong | apexcharts/types/apexcharts.d.ts:2236 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | native | grep: bindparams interval bind: 'scales' | grep · weak | 524: "description" |
| AG Charts | native ent | grep: zoom | grep · weak | ag-charts-types/dist/types/src/main.d.ts:43 |
| amCharts 5 | native | grep: zoomX | grep · weak | @amcharts/amcharts5/examples/xy-stacked-step/config.json:6 |
| Google Charts | native | grep: explorerexplorer: {actions: ['dragToZoom']} | grep · weak | @types/google.visualization/index.d.ts:467 |
| uPlot | native | Options.cursor.drag | types · strong | uplot/dist/uPlot.d.ts:589 |
| TradingView Lightweight Charts | native | grep: handleScale | grep · weak | 997: handleScale |
| MUI X Charts | native pro | grep: zoomLineChartPro zoom | grep · weak | @mui/x-charts-pro/index.d.ts:47 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: sliderFilter | grep · weak | @antv/g2/lib/index.d.ts:150 |