Features · tooltip

Touch-friendly tooltip

native

Tap/press to show tooltips on touch devices

Matrix status native. Verification render · strong. ChartKit option: ChartKitChartSpecV1.tooltip.pin, ChartKitChartSpecV1.tooltip.hit.

tooltip.pin keeps the tooltip after a tap until Escape or a second tap. tooltip.hit is the hit target in px, from 8 to 48, and 18 when pin is set and hit is omitted. pinTooltip and hitSize repair to pin and hit (CK3067).

Source: chartkit: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": {
    "pin": true,
    "hit": 28
  }
}

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.touch.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: touchstartdefault events include touchstart/touchmovegrep · weakchart.js/dist/types/index.d.ts:551
Rechartsnativegrep: touchgrep · weakrecharts/types/index.d.ts:144
Apache EChartsnativegrep: triggerOn'mousemove|click' incl. touchgrep · weakecharts/types/src/coord/parallel/ParallelModel.d.ts:17
Highchartsnativegrep: touchgrep · weakhighcharts/highcharts.src.d.ts:2034
Plotly.jsnone—absence · absence—
Nivonativegrep: touchgrep · weak@nivo/grid/dist/types/boundingBoxes.d.ts:3
Victorynativegrep: touchgrep · weakvictory-selection-container/lib/victory-selection-container.d.ts:98
visxnativegrep: touchgrep · weak@visx/event/lib/types.d.ts:1
ApexChartsnone—absence · absence—
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: pointergrep · weak@observablehq/plot/src/mark.d.ts:5
Vega-Litenone—absence · absence—
AG Chartsnativegrep: touchgrep · weakag-charts-community/dist/types/src/core/eventsHub.d.ts:48
amCharts 5nativegrep: touchgrep · weak@amcharts/amcharts5/.internal/plugins/json/Serializer.d.ts:105
Google Chartsnone—absence · absence—
uPlotnone—absence · absence—
TradingView Lightweight Chartsnativegrep: touchgrep · weak197: * Tracking Mode will be deactivated on touch end event.
MUI X Chartsnativegrep: touchgrep · weak@mui/x-charts/hooks/useInteractionItemProps.d.ts:9
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2unknowngrep: touchunverified · unknown—