Features · interaction

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.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: onClickoptions.onClick + getElementsAtEventForModegrep · weakchart.js/dist/types/index.d.ts:1703
RechartsnativeBar.onClick, LineChart.onClicktypes · strongrecharts/types/cartesian/Bar.d.ts:279
Apache EChartsnativegrep: onchart.on('click', handler)grep · weakecharts/types/src/i18n/langZH.d.ts:1
HighchartsnativeplotOptions.series.point.events.clicktypes · stronghighcharts/highcharts.d.ts:97484
Plotly.jsnativegrep: plotly_clickgrep · weak@types/plotly.js/index.d.ts:415
NivonativeBar.onClicktypes · strong@nivo/bar/dist/types/types.d.ts:133
VictorynativeVictoryBar.eventstypes · strongvictory-bar/lib/victory-bar.d.ts:12
visxmanualGroupDOM events on primitivesmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativechart.events.dataPointSelection, chart.events.clicktypes · strongapexcharts/types/apexcharts.d.ts:1846
Tremor (npm)nativeLineChart.onValueChangetypes · strong@tremor/react/dist/index.d.ts:74
Observable Plotmanualgrep: renderattach listeners to the SVGmechanism · weak@observablehq/plot/src/scales.d.ts:166
Vega-Litenativegrep: addEventListenervega View API via vega-embedgrep · weak4271: "description"
AG Chartsnativegrep: nodeClickgrep · weakag-charts-types/dist/types/src/presets/gauge/commonOptions.d.ts:18
amCharts 5nativegrep: eventssprite.events.on('click')grep · weak@amcharts/amcharts5/map.d.ts:2
Google Chartsnativegrep: select'select' eventgrep · weak@types/google.visualization/index.d.ts:396
uPlotnativeOptions.hookstypes · stronguplot/dist/uPlot.d.ts:394
TradingView Lightweight ChartsnativeIChartApi.subscribeClicktypes · stronglightweight-charts/dist/typings.d.ts:1667
MUI X ChartsnativeLineChart.onMarkClick, BarChart.onItemClicktypes · strong@mui/x-charts/LineChart/LineChart.d.mts:66
Mermaid (chart-ish diagrams only)nativegrep: clickMermaid click directives on flowcharts (not charts)grep · weakmermaid/dist/themes/theme-redux.d.ts:86
AntV G2nativegrep: ongrep · weak@antv/g2/lib/index.d.ts:2