Features · axis

Grid line style (dash, colour, width)

native

Dash pattern, colour and width of grid lines

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.axes.y.grid.

solid | dashed | dotted

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

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": "units"
  },
  "a11y": {
    "alt": "Units rose in Q2."
  },
  "size": {
    "width": 640,
    "height": 260
  },
  "axes": {
    "y": {
      "grid": 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.grid.style.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: borderDashgrid.color / lineWidth / tickBorderDashgrep · weakchart.js/dist/types/index.d.ts:1865
RechartsnativeCartesianGrid.strokeDasharraytypes · strongrecharts/types/cartesian/CartesianGrid.d.ts:155
Apache EChartsnativeyAxis.splitLine.lineStyletypes · strongecharts/types/dist/shared.d.ts:2834
HighchartsnativeyAxis.gridLineDashStyletypes · stronghighcharts/highcharts.d.ts:110170
Plotly.jsnativelayout.yaxis.griddashtypes · strongplot-schema.json#layout.layoutAttributes.yaxis.griddash
Nivopartialgrep: themetheme.grid.linegrep · weak@nivo/tree/dist/types/types.d.ts:6
VictorynativeVictoryAxis.styletypes · strongvictory-core/lib/victory-theme/types.d.ts:46
visxnativeGridRows.strokeDasharraytypes · strong@visx/grid/lib/types.d.ts:33
ApexChartsnativegrid.strokeDashArray, grid.borderColortypes · strongapexcharts/types/apexcharts.d.ts:5269
Tremor (npm)none—absence · absence—
Observable Plotnativegrep: strokeDasharraygrep · weak@observablehq/plot/src/mark.d.ts:357
Vega-Litenativegrep: gridDashgrep · weak1186: "gridColor"
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 Chartsnativegrep: gridlinesgrep · weak@types/google.visualization/index.d.ts:372
uPlotnativeOptions.axes.grid.dashtypes · stronguplot/dist/uPlot.d.ts:1037
TradingView Lightweight Chartsnativegrep: LineStylegrep · weak71: * Represents the possible line styles.
MUI X Chartsnativegrep: gridClassesgrep · weak@mui/x-charts/index.d.ts:11
Mermaid (chart-ish diagrams only)none—absence · absence—
AntV G2nativegrep: gridLineDashgrep · weak@antv/g2/lib/theme/create.d.ts:207