Features · tooltip

Shared (index) vs single (nearest) tooltip

native

All series at hovered x vs the nearest point

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.tooltip.mode=index.

Source: chartkit:packages/core/src/generated/schema.ts:196

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
  },
  "tooltip": {
    "mode": "index"
  }
}

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: tooltip.shared.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: intersectinteraction.mode 'index' | 'nearest' ...grep · weakchart.js/dist/types/utils.d.ts:20
RechartsnativeTooltip.sharedtypes · strongrecharts/types/component/Tooltip.d.ts:179
Apache EChartsnativetooltip.trigger'axis' | 'item'types · strongecharts/types/dist/shared.d.ts:6815
Highchartsnativetooltip.shared, tooltip.splittypes · stronghighcharts/highcharts.d.ts:107538
Plotly.jsunknownlayout.hovermode=x unifiedunverified · unknown—
NivonativeLine.enableSlicestypes · strong@nivo/line/dist/types/types.d.ts:181
Victorynativegrep: VoronoiDimensionVictoryVoronoiContainer voronoiDimensiongrep · weakvictory-voronoi-container/lib/victory-voronoi-container.d.ts:14
visxnativegrep: showVerticalCrosshairxychart Tooltipgrep · weak@visx/xychart/lib/components/Tooltip.d.ts:22
ApexChartsnativetooltip.shared, tooltip.intersecttypes · strongapexcharts/types/apexcharts.d.ts:4826
Tremor (npm)none—shared index tooltip onlyabsence · absence—
Observable Plotnativegrep: pointerXtip + pointerXgrep · weak@observablehq/plot/src/index.d.ts:7
Vega-Litepartialgrep: tooltiplayer + selection recipe for sharedgrep · weak630: "description"
AG Chartsnativegrep: rangetooltip.range 'exact' | 'nearest' | numbergrep · weakag-charts-community/dist/types/src/module-support.d.ts:3
amCharts 5nativegrep: snapToSeriesgrep · weak@amcharts/amcharts5/.internal/charts/xy/axes/Axis.d.ts:294
Google Chartsnativegrep: focusTarget'category' vs 'datum'grep · weak@types/google.visualization/index.d.ts:726
uPlotpartialOptions.cursortypes · stronguplot/dist/uPlot.d.ts:390
TradingView Lightweight Chartsnone—absence · absence—
MUI X Chartsnativegrep: triggertooltip trigger 'axis' | 'item'grep · weak@mui/x-charts-pro/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts:20
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: sharedgrep · weak@antv/g2/lib/composition/facetRect.d.ts:8