Tooltip positioning / follow cursor
native
Fixed, follow-cursor or anchored placement
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.tooltip.position=top.
auto, top, bottom, left, or right. The interaction runtime places the tooltip.
Source: packages/core/src/interact.ts
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": {
"position": "top"
}
}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.position.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: positiontooltip.position + custom positioners | grep · weak | chart.js/dist/types/layout.d.ts:3 |
| Recharts | native | Tooltip.position, Tooltip.offset | types · strong | recharts/types/component/Tooltip.d.ts:158 |
| Apache ECharts | native | tooltip.position, tooltip.confine | types · strong | echarts/types/dist/shared.d.ts:8086 |
| Highcharts | native | tooltip.positioner, tooltip.followPointer | types · strong | highcharts/highcharts.d.ts:107507 |
| Plotly.js | unknown | — | conflict · unknown | — |
| Nivo | unknown | — | conflict · unknown | — |
| Victory | native | VictoryTooltip.orientation, VictoryTooltip.dx | types · strong | victory-tooltip/lib/victory-tooltip.d.ts:28 |
| visx | native | TooltipWithBoundskeeps inside bounds | types · strong | @visx/tooltip/lib/tooltips/TooltipWithBounds.d.ts:7 |
| ApexCharts | native | tooltip.followCursor, tooltip.fixed | types · strong | apexcharts/types/apexcharts.d.ts:4832 |
| Tremor (npm) | unknown | — | conflict · unknown | — |
| Observable Plot | native | grep: anchor | grep · weak | @observablehq/plot/src/mark.d.ts:12 |
| Vega-Lite | unknown | — | conflict · unknown | — |
| AG Charts | native | grep: position | grep · weak | ag-charts-community/dist/types/src/module-support.d.ts:42 |
| amCharts 5 | native | grep: pointerOrientation | grep · weak | @amcharts/amcharts5/examples/xy-percent-change-comparison/config.json:293 |
| Google Charts | native | grep: trigger | grep · weak | @types/google.visualization/index.d.ts:464 |
| uPlot | unknown | — | conflict · unknown | — |
| TradingView Lightweight Charts | unknown | — | conflict · unknown | — |
| MUI X Charts | native | grep: anchor | grep · weak | @mui/x-charts/ChartsXAxis/useAxisTicksProps.d.ts:19 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: position | grep · weak | @antv/g2/lib/index.d.ts:2 |