Axis pointer label
native
Value label on the axis following the cursor
Matrix status native. Verification runtime · strong. ChartKit option: ChartKitChartSpecV1.tooltip.crosshairLabel.
tooltip.crosshairLabel prints the hovered x value on the guide, at the axis edge.
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": {
"crosshairLabel": true
}
}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: axis.crosshair.label.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | plugin | — | npm · weak | — |
| Recharts | none | — | absence · absence | — |
| Apache ECharts | native | axisPointer.label, xAxis.axisPointer | types · strong | echarts/types/dist/shared.d.ts:8181 |
| Highcharts | native | xAxis.crosshair.label | types · strong | highcharts/highcharts.d.ts:5279 |
| Plotly.js | native | layout.xaxis.showspikes | types · strong | plot-schema.json#layout.layoutAttributes.xaxis.showspikes |
| Nivo | none | — | absence · absence | — |
| Victory | native | VictoryCursorContainer.cursorLabel | types · strong | victory-cursor-container/lib/victory-cursor-container.d.ts:7 |
| visx | none | — | absence · absence | — |
| ApexCharts | native | xaxis.crosshairs, xaxis.tooltip | types · strong | apexcharts/types/apexcharts.d.ts:4992 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | crosshairXcrosshair mark shows axis values | types · strong | @observablehq/plot/src/marks/crosshair.d.ts:74 |
| Vega-Lite | none | — | absence · absence | — |
| AG Charts | native | grep: crosshair | grep · weak | ag-charts-types/dist/types/src/main.d.ts:17 |
| amCharts 5 | native | grep: XYCursoraxis.tooltip shows value on axis | grep · weak | @amcharts/amcharts5/xy.d.ts:3 |
| Google Charts | none | — | absence · absence | — |
| uPlot | native | Options.cursor | types · strong | uplot/dist/uPlot.d.ts:390 |
| TradingView Lightweight Charts | native | grep: crosshair | grep · weak | 33: * Represents the crosshair mode. |
| MUI X Charts | native | ChartsAxisHighlight | types · strong | @mui/x-charts/ChartsAxisHighlight/ChartsAxisHighlight.d.mts:12 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: crosshairs | grep · weak | @antv/g2/lib/runtime/types/mark.d.ts:30 |