Hover highlight
native
Emphasise hovered mark/series, dim others
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.interaction.hover.
Source: chartkit:packages/core/src/generated/schema.ts:1141
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": {
"hover": true
}
}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.hover.highlight.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: hoverBackgroundColor | grep · weak | chart.js/dist/types/index.d.ts:1628 |
| Recharts | native | Line.activeDot, Bar.activeBar | types · strong | recharts/types/cartesian/Line.d.ts:43 |
| Apache ECharts | native | series.emphasis.focus | types · strong | echarts/types/dist/shared.d.ts:8265 |
| Highcharts | native | plotOptions.series.states.hover, plotOptions.series.states.inactive | types · strong | highcharts/highcharts.d.ts:103192 |
| Plotly.js | partial | trace.hoverlabelno dimming of other traces | types · strong | plot-schema.json#traces.{bar,barpolar,box,candlestick,choropleth,choroplethmap,…}.attributes.hoverlabel |
| Nivo | native | Line.enableSlices | types · strong | @nivo/line/dist/types/types.d.ts:181 |
| Victory | native | VictoryVoronoiContainer | types · strong | victory-voronoi-container/lib/victory-voronoi-container.d.ts:76 |
| visx | manual | Group | mechanism · weak | @visx/group/lib/Group.d.ts:15 |
| ApexCharts | native | states.hover.filter, states.active.filter | types · strong | apexcharts/types/apexcharts.d.ts:2419 |
| Tremor (npm) | native | grep: activeDot | grep · weak | @tremor/react/dist/index.d.ts:74 |
| Observable Plot | native | grep: pointerpointer transform highlights | grep · weak | @observablehq/plot/src/mark.d.ts:5 |
| Vega-Lite | native | grep: paramselection params + condition | grep · weak | 340: "description" |
| AG Charts | native | AgBarSeriesOptions.highlight | types · strong | ag-charts-types/dist/types/src/series/cartesian/barOptions.d.ts:76 |
| amCharts 5 | native | grep: hoverState | grep · weak | @amcharts/amcharts5/.internal/core/render/Sprite.d.ts:108 |
| Google Charts | native | grep: focusTarget | grep · weak | @types/google.visualization/index.d.ts:726 |
| uPlot | native | Options.focus.alphacursor.focus dims other series | types · strong | uplot/dist/uPlot.d.ts:401 |
| TradingView Lightweight Charts | partial | grep: crosshairMarkerhover marker only | grep · weak | 501: crosshairMarkerVisible |
| MUI X Charts | native | LineChart.series.highlightScope | types · strong | @mui/x-charts/models/seriesType/common.d.mts:51 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: elementHighlight | grep · weak | @antv/g2/lib/index.d.ts:133 |