Pan
native
Drag to move the visible range
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.interaction.pan.
Source: chartkit:packages/core/src/generated/schema.ts:1153
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": {
"pan": true
}
}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.pan.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | plugin | — | npm · weak | — |
| Recharts | unknown | — | conflict · unknown | — |
| Apache ECharts | native | dataZoominside dataZoom moveOnMouseMove | types · strong | echarts/types/dist/shared.d.ts:12589 |
| Highcharts | native | chart.panning | types · strong | highcharts/highcharts.d.ts:6454 |
| Plotly.js | native | layout.dragmode=pan | types · strong | plot-schema.json#layout.layoutAttributes.dragmode |
| Nivo | unknown | — | conflict · unknown | — |
| Victory | native | VictoryZoomContainer.allowPan | types · strong | victory-zoom-container/lib/victory-zoom-container.d.ts:9 |
| visx | native | Zoom | types · strong | @visx/zoom/lib/Zoom.d.ts:60 |
| ApexCharts | native | chart.toolbar.tools.pan | types · strong | apexcharts/types/apexcharts.d.ts:2187 |
| Tremor (npm) | unknown | — | conflict · unknown | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | native | grep: bind | grep · weak | 524: "description" |
| AG Charts | native ent | grep: panKey | grep · weak | ag-charts-community/dist/types/src/core/eventsHub.d.ts:239 |
| amCharts 5 | native | grep: panX | grep · weak | @amcharts/amcharts5/.internal/charts/xy/XYChart.d.ts:49 |
| Google Charts | unknown | grep: dragToPan | unverified · unknown | — |
| uPlot | manual | Options.hooksdemos | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | native | grep: handleScroll | grep · weak | 993: handleScroll |
| MUI X Charts | native pro | grep: zoom | grep · weak | @mui/x-charts/locales/svSE.d.ts:10 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: scrollbar | grep · weak | @antv/g2/lib/index.d.ts:118 |