Features · interaction

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.

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsplugin—npm · weak—
Rechartsnone—Brush onlyabsence · absence—
Apache EChartsnativedataZoomtypes · strongecharts/types/dist/shared.d.ts:12589
Highchartsnativechart.zoomingtypes · stronghighcharts/highcharts.d.ts:6692
Plotly.jsnativelayout.dragmode=zoom, config.scrollZoomtypes · strongplot-schema.json#layout.layoutAttributes.dragmode
Nivounknown—conflict · unknown—
VictorynativeVictoryZoomContainertypes · strongvictory-zoom-container/lib/victory-zoom-container.d.ts:81
visxnativeZoomtypes · strong@visx/zoom/lib/Zoom.d.ts:60
ApexChartsnativechart.zoom.enabledtypes · strongapexcharts/types/apexcharts.d.ts:2236
Tremor (npm)none—absence · absence—
Observable Plotnone—absence · absence—
Vega-Litenativegrep: bindparams interval bind: 'scales'grep · weak524: "description"
AG Chartsnative entgrep: zoomgrep · weakag-charts-types/dist/types/src/main.d.ts:43
amCharts 5nativegrep: zoomXgrep · weak@amcharts/amcharts5/examples/xy-stacked-step/config.json:6
Google Chartsnativegrep: explorerexplorer: {actions: ['dragToZoom']}grep · weak@types/google.visualization/index.d.ts:467
uPlotnativeOptions.cursor.dragtypes · stronguplot/dist/uPlot.d.ts:589
TradingView Lightweight Chartsnativegrep: handleScalegrep · weak997: handleScale
MUI X Chartsnative progrep: zoomLineChartPro zoomgrep · weak@mui/x-charts-pro/index.d.ts:47
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: sliderFiltergrep · weak@antv/g2/lib/index.d.ts:150