Features · annotation

Annotation styling (dash, colour, opacity)

native

Line dash, colour and opacity of annotations

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

dash, color, opacity

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

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": "y",
      "value": 50,
      "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.style.md.

LibraryStatusOptionVerificationSource
Chart.jsplugin—npm · weak—
RechartsnativeReferenceLine.strokeDasharraytypes · strong@types/react/index.d.ts:3923
Apache EChartsnativegrep: lineStylegrep · weakecharts/types/dist/shared.d.ts:2758
Highchartsnativegrep: dashStylegrep · weakhighcharts/highcharts.src.d.ts:367
Plotly.jsnativegrep: dashgrep · weak@types/plotly.js/index.d.ts:811
Nivonativegrep: lineStylegrep · weak@nivo/core/index.d.ts:333
VictorymanualVictoryBarProps.dataComponentmechanism · weakvictory-core/lib/victory-util/common-props.d.ts:9
visxmanualGroupmechanism · weak@visx/group/lib/Group.d.ts:15
ApexChartsnativegrep: strokeDashArraygrep · weakapexcharts/types/apexcharts.d.ts:2104
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: strokeDasharraygrep · weak@observablehq/plot/src/mark.d.ts:357
Vega-Litenativegrep: strokeDashgrep · weak736: "strokeDash"
AG Chartsnativegrep: lineDashgrep · weakag-charts-types/dist/types/src/presets/gauge/radialGaugeOptions.d.ts:5
amCharts 5nativegrep: strokeDasharraygrep · weak@amcharts/amcharts5/.internal/charts/xy/XYChart.d.ts:37
Google Chartsunknown—conflict · unknown—
uPlotunknown—conflict · unknown—
TradingView Lightweight Chartsnativegrep: lineStylegrep · weak73:export declare enum LineStyle {
MUI X Chartsnativegrep: lineStylegrep · weak@mui/x-charts/index.d.ts:11
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: lineDashgrep · weak@antv/g2/lib/theme/create.d.ts:207