Features · tooltip

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.

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

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: positiontooltip.position + custom positionersgrep · weakchart.js/dist/types/layout.d.ts:3
RechartsnativeTooltip.position, Tooltip.offsettypes · strongrecharts/types/component/Tooltip.d.ts:158
Apache EChartsnativetooltip.position, tooltip.confinetypes · strongecharts/types/dist/shared.d.ts:8086
Highchartsnativetooltip.positioner, tooltip.followPointertypes · stronghighcharts/highcharts.d.ts:107507
Plotly.jsunknown—conflict · unknown—
Nivounknown—conflict · unknown—
VictorynativeVictoryTooltip.orientation, VictoryTooltip.dxtypes · strongvictory-tooltip/lib/victory-tooltip.d.ts:28
visxnativeTooltipWithBoundskeeps inside boundstypes · strong@visx/tooltip/lib/tooltips/TooltipWithBounds.d.ts:7
ApexChartsnativetooltip.followCursor, tooltip.fixedtypes · strongapexcharts/types/apexcharts.d.ts:4832
Tremor (npm)unknown—conflict · unknown—
Observable Plotnativegrep: anchorgrep · weak@observablehq/plot/src/mark.d.ts:12
Vega-Liteunknown—conflict · unknown—
AG Chartsnativegrep: positiongrep · weakag-charts-community/dist/types/src/module-support.d.ts:42
amCharts 5nativegrep: pointerOrientationgrep · weak@amcharts/amcharts5/examples/xy-percent-change-comparison/config.json:293
Google Chartsnativegrep: triggergrep · weak@types/google.visualization/index.d.ts:464
uPlotunknown—conflict · unknown—
TradingView Lightweight Chartsunknown—conflict · unknown—
MUI X Chartsnativegrep: anchorgrep · weak@mui/x-charts/ChartsXAxis/useAxisTicksProps.d.ts:19
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: positiongrep · weak@antv/g2/lib/index.d.ts:2