Features · interaction

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.

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

LibraryStatusOptionVerificationSource
Chart.jsnone—absence · absence—
Rechartsunknown—conflict · unknown—
Apache EChartsnativeseries.selectedModetypes · strongecharts/types/dist/shared.d.ts:8378
HighchartsnativeplotOptions.series.allowPointSelecttypes · stronghighcharts/options/series.d.ts:568
Plotly.jsnativelayout.clickmodetypes · strongplot-schema.json#layout.layoutAttributes.clickmode
Nivounknown—conflict · unknown—
VictorynativeVictorySelectionContainertypes · strongvictory-selection-container/lib/victory-selection-container.d.ts:91
visxmanualGroupmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativestates.active.allowMultipleDataPointsSelectiontypes · strongapexcharts/types/apexcharts.d.ts:2432
Tremor (npm)partialBarChart.onValueChangesingle active categorytypes · strong@tremor/react/dist/index.d.ts:74
Observable Plotmanualgrep: rendermechanism · weak@observablehq/plot/src/scales.d.ts:166
Vega-Litenativegrep: SelectionParameterparams select: point | intervalgrep · weak350: "description"
AG Chartsnativegrep: selectiongrep · weakag-charts-community/dist/types/src/module-support.d.ts:11
amCharts 5nativegrep: activegrep · weak@amcharts/amcharts5/.internal/plugins/exporting/ExportingMenu.d.ts:138
Google Chartsnativegrep: selectionModegrep · weak@types/google.visualization/index.d.ts:506
uPlotnativeOptions.selecttypes · stronguplot/dist/uPlot.d.ts:386
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnativegrep: highlightedItemgrep · weak@mui/x-charts-pro/Heatmap/seriesConfig/highlight.d.ts:6
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: elementSelectgrep · weak@antv/g2/lib/index.d.ts:137