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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: touchstartdefault events include touchstart/touchmove | grep · weak | chart.js/dist/types/index.d.ts:551 |
| Recharts | native | grep: touch | grep · weak | recharts/types/index.d.ts:144 |
| Apache ECharts | native | grep: triggerOn'mousemove|click' incl. touch | grep · weak | echarts/types/src/coord/parallel/ParallelModel.d.ts:17 |
| Highcharts | native | grep: touch | grep · weak | highcharts/highcharts.src.d.ts:2034 |
| Plotly.js | none | — | absence · absence | — |
| Nivo | native | grep: touch | grep · weak | @nivo/grid/dist/types/boundingBoxes.d.ts:3 |
| Victory | native | grep: touch | grep · weak | victory-selection-container/lib/victory-selection-container.d.ts:98 |
| visx | native | grep: touch | grep · weak | @visx/event/lib/types.d.ts:1 |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: pointer | grep · weak | @observablehq/plot/src/mark.d.ts:5 |
| Vega-Lite | none | — | absence · absence | — |
| AG Charts | native | grep: touch | grep · weak | ag-charts-community/dist/types/src/core/eventsHub.d.ts:48 |
| amCharts 5 | native | grep: touch | grep · weak | @amcharts/amcharts5/.internal/plugins/json/Serializer.d.ts:105 |
| Google Charts | none | — | absence · absence | — |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | native | grep: touch | grep · weak | 197: * Tracking Mode will be deactivated on touch end event. |
| MUI X Charts | native | grep: touch | grep · weak | @mui/x-charts/hooks/useInteractionItemProps.d.ts:9 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | unknown | grep: touch | unverified · unknown | — |