Point marker / callout
native
Marker or arrow highlighting a point
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.annotations.
Point, leader, and a text box kept inside the plot. Later callouts move clear of earlier ones.
Source: chartkit:packages/core/src/annotations.ts:19
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
},
"annotations": [
{
"type": "marker",
"x": "Q2",
"label": "Peak"
}
]
}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: annotation.marker.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | plugin | — | npm · weak | — |
| Recharts | native | ReferenceDot | types · strong | recharts/types/cartesian/ReferenceDot.d.ts:137 |
| Apache ECharts | native | series.markPoint | types · strong | echarts/types/dist/shared.d.ts:12500 |
| Highcharts | native | grep: annotationsshapes + labels | grep · weak | highcharts/highcharts.src.d.ts:162 |
| Plotly.js | native | layout.annotationsshowarrow | types · strong | plot-schema.json#layout.layoutAttributes.annotations |
| Nivo | native | grep: annotations@nivo/annotations | grep · weak | @nivo/scatterplot/package.json:39 |
| Victory | manual | VictoryBarProps.dataComponent | mechanism · weak | victory-core/lib/victory-util/common-props.d.ts:9 |
| visx | native | Annotation, Connector | types · strong | @visx/annotation/lib/components/Annotation.d.ts:7 |
| ApexCharts | native | annotations.points | types · strong | apexcharts/types/apexcharts.d.ts:2660 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | arrow, dot | types · strong | @observablehq/plot/src/marks/arrow.d.ts:111 |
| Vega-Lite | manual | TopLevelSpec.layer | mechanism · weak | vega-lite/build/spec/layer.d.ts:27 |
| AG Charts | native | grep: annotations | grep · weak | ag-charts-types/dist/types/src/main.d.ts:7 |
| amCharts 5 | native | grep: CalloutSeries | grep · weak | @amcharts/amcharts5/stock.d.ts:56 |
| Google Charts | none | — | absence · absence | — |
| uPlot | manual | Options.hooks | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | native | grep: SeriesMarkerseries markers (arrows/circles) at times | grep · weak | 274: * import { createSeriesMarkers } from 'lightweight-charts'; |
| MUI X Charts | manual | ChartsContainer | mechanism · weak | @mui/x-charts/ChartsContainer/ChartsContainer.d.mts:34 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: annotation | grep · weak | @antv/g2/lib/component/constant.d.ts:22 |