Selection (point / multi / series)
native
Persisted selection of points or series
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.interaction.select=point.
point or series. Shift, Ctrl, or Meta adds. Escape or a background click clears. --ck-dim fades the rest and --ck-selected strokes the chosen mark.
Source: packages/core/src/interact.ts
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": {
"select": "point"
}
}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.select.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | unknown | — | conflict · unknown | — |
| Apache ECharts | native | series.selectedMode | types · strong | echarts/types/dist/shared.d.ts:8378 |
| Highcharts | native | plotOptions.series.allowPointSelect | types · strong | highcharts/options/series.d.ts:568 |
| Plotly.js | native | layout.clickmode | types · strong | plot-schema.json#layout.layoutAttributes.clickmode |
| Nivo | unknown | — | conflict · unknown | — |
| Victory | native | VictorySelectionContainer | types · strong | victory-selection-container/lib/victory-selection-container.d.ts:91 |
| visx | manual | Group | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | native | states.active.allowMultipleDataPointsSelection | types · strong | apexcharts/types/apexcharts.d.ts:2432 |
| Tremor (npm) | partial | BarChart.onValueChangesingle active category | types · strong | @tremor/react/dist/index.d.ts:74 |
| Observable Plot | manual | grep: render | mechanism · weak | @observablehq/plot/src/scales.d.ts:166 |
| Vega-Lite | native | grep: SelectionParameterparams select: point | interval | grep · weak | 350: "description" |
| AG Charts | native | grep: selection | grep · weak | ag-charts-community/dist/types/src/module-support.d.ts:11 |
| amCharts 5 | native | grep: active | grep · weak | @amcharts/amcharts5/.internal/plugins/exporting/ExportingMenu.d.ts:138 |
| Google Charts | native | grep: selectionMode | grep · weak | @types/google.visualization/index.d.ts:506 |
| uPlot | native | Options.select | types · strong | uplot/dist/uPlot.d.ts:386 |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | grep: highlightedItem | grep · weak | @mui/x-charts-pro/Heatmap/seriesConfig/highlight.d.ts:6 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: elementSelect | grep · weak | @antv/g2/lib/index.d.ts:137 |