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.
{
"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.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: borderDashgrid.color / lineWidth / tickBorderDash | grep · weak | chart.js/dist/types/index.d.ts:1865 |
| Recharts | native | CartesianGrid.strokeDasharray | types · strong | recharts/types/cartesian/CartesianGrid.d.ts:155 |
| Apache ECharts | native | yAxis.splitLine.lineStyle | types · strong | echarts/types/dist/shared.d.ts:2834 |
| Highcharts | native | yAxis.gridLineDashStyle | types · strong | highcharts/highcharts.d.ts:110170 |
| Plotly.js | native | layout.yaxis.griddash | types · strong | plot-schema.json#layout.layoutAttributes.yaxis.griddash |
| Nivo | partial | grep: themetheme.grid.line | grep · weak | @nivo/tree/dist/types/types.d.ts:6 |
| Victory | native | VictoryAxis.style | types · strong | victory-core/lib/victory-theme/types.d.ts:46 |
| visx | native | GridRows.strokeDasharray | types · strong | @visx/grid/lib/types.d.ts:33 |
| ApexCharts | native | grid.strokeDashArray, grid.borderColor | types · strong | apexcharts/types/apexcharts.d.ts:5269 |
| Tremor (npm) | none | — | absence · absence | — |
| Observable Plot | native | grep: strokeDasharray | grep · weak | @observablehq/plot/src/mark.d.ts:357 |
| Vega-Lite | native | grep: gridDash | grep · weak | 1186: "gridColor" |
| AG Charts | native | grep: lineDash | grep · weak | ag-charts-types/dist/types/src/presets/gauge/radialGaugeOptions.d.ts:5 |
| amCharts 5 | native | grep: strokeDasharray | grep · weak | @amcharts/amcharts5/.internal/charts/xy/XYChart.d.ts:37 |
| Google Charts | native | grep: gridlines | grep · weak | @types/google.visualization/index.d.ts:372 |
| uPlot | native | Options.axes.grid.dash | types · strong | uplot/dist/uPlot.d.ts:1037 |
| TradingView Lightweight Charts | native | grep: LineStyle | grep · weak | 71: * Represents the possible line styles. |
| MUI X Charts | native | grep: gridClasses | grep · weak | @mui/x-charts/index.d.ts:11 |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | native | grep: gridLineDash | grep · weak | @antv/g2/lib/theme/create.d.ts:207 |