Features · mark

Dashed / dotted lines

native

Dash patterns on series lines

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.encoding.y.dash.

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

ChartKit spec

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

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "version": "1",
  "type": "line",
  "data": [
    {
      "quarter": "Q1",
      "units": 40
    },
    {
      "quarter": "Q2",
      "units": 55
    }
  ],
  "encoding": {
    "x": "quarter",
    "y": {
      "field": "units",
      "dash": "dashed"
    }
  },
  "a11y": {
    "alt": "Units rose in Q2."
  },
  "size": {
    "width": 640,
    "height": 260
  }
}

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: mark.stroke.dash.md.

LibraryStatusOptionVerificationSource
Chart.jsnativeChartConfiguration.data.datasets.borderDashtypes · strongchart.js/dist/types/index.d.ts:1919
RechartsnativeLine.strokeDasharraytypes · strong@types/react/index.d.ts:3923
Apache EChartsnativeseries.lineStyle.typetypes · strongecharts/types/dist/shared.d.ts:7782
HighchartsnativeplotOptions.series.dashStyletypes · stronghighcharts/options/series.d.ts:805
Plotly.jsnativetrace.line.dashtypes · strongplot-schema.json#traces.{contour,contourcarpet,histogram2dcontour,ohlc,scatter,scatter3d,…}.attributes.line.dash
NivopartialLine.layerscustom layer / themetypes · strong@nivo/line/dist/types/types.d.ts:171
VictorynativeVictoryLine.styletypes · strongvictory-line/lib/victory-line.d.ts:84
visxnativeLinePath.strokeDasharraytypes · strong@types/react/index.d.ts:3923
ApexChartsnativestroke.dashArraytypes · strongapexcharts/types/apexcharts.d.ts:2653
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: strokeDasharraygrep · weak@observablehq/plot/src/mark.d.ts:357
Vega-Litenativegrep: strokeDashgrep · weak736: "strokeDash"
AG Chartsnativeseries.lineDashtypes · strongag-charts-types/dist/types/src/series/cartesian/commonOptions.d.ts:170
amCharts 5nativegrep: strokeDasharraygrep · weak@amcharts/amcharts5/.internal/charts/xy/XYChart.d.ts:37
Google Chartspartialgrep: lineDashStylecertainty role / series lineDashStylegrep · weak@types/google.visualization/index.d.ts:761
uPlotnativeOptions.series.dashtypes · stronguplot/dist/uPlot.d.ts:941
TradingView Lightweight Chartsnativegrep: lineStylegrep · weak73:export declare enum LineStyle {
MUI X Chartspartialgrep: strokeDasharrayvia sx/slotPropsgrep · weak@mui/x-charts/ChartsYAxis/useAxisTicksProps.d.ts:4065
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: lineDashgrep · weak@antv/g2/lib/theme/create.d.ts:207