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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | native | Brush | types · strong | recharts/types/cartesian/Brush.d.ts:111 |
| Apache ECharts | native | brush | types · strong | echarts/types/dist/shared.d.ts:12586 |
| Highcharts | native | chart.zoomingzoom selection; navigator/rangeSelector in Stock | types · strong | highcharts/highcharts.d.ts:6692 |
| Plotly.js | native | layout.dragmode=select | types · strong | plot-schema.json#layout.layoutAttributes.dragmode |
| Nivo | none | — | absence · absence | — |
| Victory | native | VictoryBrushContainer | types · strong | victory-brush-container/lib/victory-brush-container.d.ts:131 |
| visx | native | Brush | types · strong | @visx/brush/lib/Brush.d.ts:59 |
| ApexCharts | native | chart.brush | types · strong | apexcharts/types/apexcharts.d.ts:1917 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | none | — | absence · absence | — |
| Vega-Lite | native | grep: intervalparams select: interval | grep · weak | 1586: "description" |
| AG Charts | native | grep: navigator | grep · weak | ag-charts-types/dist/types/src/main.d.ts:31 |
| amCharts 5 | native | grep: behaviorXYCursor behavior: 'selectX' | grep · weak | @amcharts/amcharts5/.internal/plugins/sliceGrouper/SliceGrouper.d.ts:42 |
| Google Charts | native | grep: explorer | grep · weak | @types/google.visualization/index.d.ts:467 |
| uPlot | native | Options.cursor.drag, Options.select | types · strong | uplot/dist/uPlot.d.ts:589 |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | ChartsBrushOverlay | types · strong | @mui/x-charts/ChartsBrushOverlay/ChartsBrushOverlay.d.mts:11 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: brushXHighlight | grep · weak | @antv/g2/lib/index.d.ts:146 |