Features · interaction

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.

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: hoverBackgroundColorgrep · weakchart.js/dist/types/index.d.ts:1628
RechartsnativeLine.activeDot, Bar.activeBartypes · strongrecharts/types/cartesian/Line.d.ts:43
Apache EChartsnativeseries.emphasis.focustypes · strongecharts/types/dist/shared.d.ts:8265
HighchartsnativeplotOptions.series.states.hover, plotOptions.series.states.inactivetypes · stronghighcharts/highcharts.d.ts:103192
Plotly.jspartialtrace.hoverlabelno dimming of other tracestypes · strongplot-schema.json#traces.{bar,barpolar,box,candlestick,choropleth,choroplethmap,…}.attributes.hoverlabel
NivonativeLine.enableSlicestypes · strong@nivo/line/dist/types/types.d.ts:181
VictorynativeVictoryVoronoiContainertypes · strongvictory-voronoi-container/lib/victory-voronoi-container.d.ts:76
visxmanualGroupmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativestates.hover.filter, states.active.filtertypes · strongapexcharts/types/apexcharts.d.ts:2419
Tremor (npm)nativegrep: activeDotgrep · weak@tremor/react/dist/index.d.ts:74
Observable Plotnativegrep: pointerpointer transform highlightsgrep · weak@observablehq/plot/src/mark.d.ts:5
Vega-Litenativegrep: paramselection params + conditiongrep · weak340: "description"
AG ChartsnativeAgBarSeriesOptions.highlighttypes · strongag-charts-types/dist/types/src/series/cartesian/barOptions.d.ts:76
amCharts 5nativegrep: hoverStategrep · weak@amcharts/amcharts5/.internal/core/render/Sprite.d.ts:108
Google Chartsnativegrep: focusTargetgrep · weak@types/google.visualization/index.d.ts:726
uPlotnativeOptions.focus.alphacursor.focus dims other seriestypes · stronguplot/dist/uPlot.d.ts:401
TradingView Lightweight Chartspartialgrep: crosshairMarkerhover marker onlygrep · weak501: crosshairMarkerVisible
MUI X ChartsnativeLineChart.series.highlightScopetypes · strong@mui/x-charts/models/seriesType/common.d.mts:51
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: elementHighlightgrep · weak@antv/g2/lib/index.d.ts:133