Features · annotation

Vertical reference line

native

Line at an x value (event, deploy)

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.annotations.axis=x.

Source: chartkit:packages/core/src/generated/schema.ts:225

ChartKit spec

Passed validate() during npm run matrix:refresh. The SVG is the server render.

Units rose in Q2.Units rose in Q2.Mark40455055Q1Q2
{
  "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": "rule",
      "axis": "x",
      "value": "Q2",
      "label": "Mark"
    }
  ]
}

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.line.x.md.

LibraryStatusOptionVerificationSource
Chart.jsplugin—npm · weak—
RechartsnativeReferenceLine.xtypes · strong@types/react/index.d.ts:3967
Apache EChartsnativeseries.markLinetypes · strongecharts/types/dist/shared.d.ts:12499
HighchartsnativexAxis.plotLinestypes · stronghighcharts/highcharts.d.ts:108598
Plotly.jsnativelayout.shapestypes · strongplot-schema.json#layout.layoutAttributes.shapes
NivonativeLine.markerstypes · strong@nivo/line/dist/types/types.d.ts:186
VictorymanualVictoryBarProps.dataComponentmechanism · weakvictory-core/lib/victory-util/common-props.d.ts:9
visxmanualGroupmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativeannotations.xaxistypes · strongapexcharts/types/apexcharts.d.ts:2659
Tremor (npm)none—absence · absence—
Observable PlotnativeruleXtypes · strong@observablehq/plot/src/marks/rule.d.ts:114
Vega-Litenativemark=ruletypes · strongvega-lite/build/spec/unit.d.ts:19
AG Chartsnativegrep: crossLinesgrep · weakag-charts-enterprise/dist/types/src/main.d.ts:9
amCharts 5nativegrep: createAxisRangegrep · weak@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.d.ts:740
Google Chartsnone—absence · absence—
uPlotmanualOptions.hooksmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartspartialgrep: createSeriesMarkersmarkers at a time, not a linegrep · weak274: * import { createSeriesMarkers } from 'lightweight-charts';
MUI X ChartsnativeChartsReferenceLinetypes · strong@mui/x-charts/ChartsReferenceLine/ChartsReferenceLine.d.mts:5
Mermaid (chart-ish diagrams only)nativegrep: todayMarkergantt todayMarkergrep · weakmermaid/dist/diagrams/gantt/ganttDb.d.ts:7
AntV G2nativeMarkTypes=lineXtypes · strong@antv/g2/lib/spec/mark.d.ts:13