Click events on marks
native
Callback with the clicked datum
Matrix status native. Verification runtime · strong. ChartKit option: pointclick, seriesclick, legendclick.
Host events pointclick, seriesclick, and legendclick carry series, datum, index, x, y, value, and row. Enter or Space on a focused point emits pointclick. These are events, not spec keys.
Source: packages/core/src/interact.ts
No spec snippet. This row is not a single chart option validate() can show.
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.click.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: onClickoptions.onClick + getElementsAtEventForMode | grep · weak | chart.js/dist/types/index.d.ts:1703 |
| Recharts | native | Bar.onClick, LineChart.onClick | types · strong | recharts/types/cartesian/Bar.d.ts:279 |
| Apache ECharts | native | grep: onchart.on('click', handler) | grep · weak | echarts/types/src/i18n/langZH.d.ts:1 |
| Highcharts | native | plotOptions.series.point.events.click | types · strong | highcharts/highcharts.d.ts:97484 |
| Plotly.js | native | grep: plotly_click | grep · weak | @types/plotly.js/index.d.ts:415 |
| Nivo | native | Bar.onClick | types · strong | @nivo/bar/dist/types/types.d.ts:133 |
| Victory | native | VictoryBar.events | types · strong | victory-bar/lib/victory-bar.d.ts:12 |
| visx | manual | GroupDOM events on primitives | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | native | chart.events.dataPointSelection, chart.events.click | types · strong | apexcharts/types/apexcharts.d.ts:1846 |
| Tremor (npm) | native | LineChart.onValueChange | types · strong | @tremor/react/dist/index.d.ts:74 |
| Observable Plot | manual | grep: renderattach listeners to the SVG | mechanism · weak | @observablehq/plot/src/scales.d.ts:166 |
| Vega-Lite | native | grep: addEventListenervega View API via vega-embed | grep · weak | 4271: "description" |
| AG Charts | native | grep: nodeClick | grep · weak | ag-charts-types/dist/types/src/presets/gauge/commonOptions.d.ts:18 |
| amCharts 5 | native | grep: eventssprite.events.on('click') | grep · weak | @amcharts/amcharts5/map.d.ts:2 |
| Google Charts | native | grep: select'select' event | grep · weak | @types/google.visualization/index.d.ts:396 |
| uPlot | native | Options.hooks | types · strong | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | native | IChartApi.subscribeClick | types · strong | lightweight-charts/dist/typings.d.ts:1667 |
| MUI X Charts | native | LineChart.onMarkClick, BarChart.onItemClick | types · strong | @mui/x-charts/LineChart/LineChart.d.mts:66 |
| Mermaid (chart-ish diagrams only) | native | grep: clickMermaid click directives on flowcharts (not charts) | grep · weak | mermaid/dist/themes/theme-redux.d.ts:86 |
| AntV G2 | native | grep: on | grep · weak | @antv/g2/lib/index.d.ts:2 |