Features · interaction

Brush / range selection

native

Drag to select a range and emit it

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.interaction.brush=x.

emits 'rangechange'

Source: chartkit:packages/core/src/generated/schema.ts:1157

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": {
    "brush": "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.brush.md.

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
RechartsnativeBrushtypes · strongrecharts/types/cartesian/Brush.d.ts:111
Apache EChartsnativebrushtypes · strongecharts/types/dist/shared.d.ts:12586
Highchartsnativechart.zoomingzoom selection; navigator/rangeSelector in Stocktypes · stronghighcharts/highcharts.d.ts:6692
Plotly.jsnativelayout.dragmode=selecttypes · strongplot-schema.json#layout.layoutAttributes.dragmode
Nivonone—absence · absence—
VictorynativeVictoryBrushContainertypes · strongvictory-brush-container/lib/victory-brush-container.d.ts:131
visxnativeBrushtypes · strong@visx/brush/lib/Brush.d.ts:59
ApexChartsnativechart.brushtypes · strongapexcharts/types/apexcharts.d.ts:1917
Tremor (npm)none—absence · absence—
Observable Plotnone—absence · absence—
Vega-Litenativegrep: intervalparams select: intervalgrep · weak1586: "description"
AG Chartsnativegrep: navigatorgrep · weakag-charts-types/dist/types/src/main.d.ts:31
amCharts 5nativegrep: behaviorXYCursor behavior: 'selectX'grep · weak@amcharts/amcharts5/.internal/plugins/sliceGrouper/SliceGrouper.d.ts:42
Google Chartsnativegrep: explorergrep · weak@types/google.visualization/index.d.ts:467
uPlotnativeOptions.cursor.drag, Options.selecttypes · stronguplot/dist/uPlot.d.ts:589
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativeChartsBrushOverlaytypes · strong@mui/x-charts/ChartsBrushOverlay/ChartsBrushOverlay.d.mts:11
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: brushXHighlightgrep · weak@antv/g2/lib/index.d.ts:146