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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: intersectinteraction.mode 'index' | 'nearest' ... | grep · weak | chart.js/dist/types/utils.d.ts:20 |
| Recharts | native | Tooltip.shared | types · strong | recharts/types/component/Tooltip.d.ts:179 |
| Apache ECharts | native | tooltip.trigger'axis' | 'item' | types · strong | echarts/types/dist/shared.d.ts:6815 |
| Highcharts | native | tooltip.shared, tooltip.split | types · strong | highcharts/highcharts.d.ts:107538 |
| Plotly.js | unknown | layout.hovermode=x unified | unverified · unknown | — |
| Nivo | native | Line.enableSlices | types · strong | @nivo/line/dist/types/types.d.ts:181 |
| Victory | native | grep: VoronoiDimensionVictoryVoronoiContainer voronoiDimension | grep · weak | victory-voronoi-container/lib/victory-voronoi-container.d.ts:14 |
| visx | native | grep: showVerticalCrosshairxychart Tooltip | grep · weak | @visx/xychart/lib/components/Tooltip.d.ts:22 |
| ApexCharts | native | tooltip.shared, tooltip.intersect | types · strong | apexcharts/types/apexcharts.d.ts:4826 |
| Tremor (npm) | none | —shared index tooltip only | absence · absence | — |
| Observable Plot | native | grep: pointerXtip + pointerX | grep · weak | @observablehq/plot/src/index.d.ts:7 |
| Vega-Lite | partial | grep: tooltiplayer + selection recipe for shared | grep · weak | 630: "description" |
| AG Charts | native | grep: rangetooltip.range 'exact' | 'nearest' | number | grep · weak | ag-charts-community/dist/types/src/module-support.d.ts:3 |
| amCharts 5 | native | grep: snapToSeries | grep · weak | @amcharts/amcharts5/.internal/charts/xy/axes/Axis.d.ts:294 |
| Google Charts | native | grep: focusTarget'category' vs 'datum' | grep · weak | @types/google.visualization/index.d.ts:726 |
| uPlot | partial | Options.cursor | types · strong | uplot/dist/uPlot.d.ts:390 |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | grep: 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 G2 | native | grep: shared | grep · weak | @antv/g2/lib/composition/facetRect.d.ts:8 |