Grid lines
native
Major grid lines from an axis
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.axes.y.grid.
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.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: gridscales.y.grid.display | grep · weak | chart.js/dist/types/index.d.ts:1296 |
| Recharts | native | CartesianGrid | types · strong | recharts/types/cartesian/CartesianGrid.d.ts:201 |
| Apache ECharts | native | yAxis.splitLine.show | types · strong | echarts/types/dist/shared.d.ts:2830 |
| Highcharts | native | yAxis.gridLineWidth, yAxis.gridLineColor | types · strong | highcharts/highcharts.d.ts:110189 |
| Plotly.js | native | layout.yaxis.showgrid, layout.yaxis.gridcolor | types · strong | plot-schema.json#layout.layoutAttributes.yaxis.showgrid |
| Nivo | native | Line.enableGridX, Line.enableGridY | types · strong | @nivo/line/dist/types/types.d.ts:148 |
| Victory | native | VictoryAxis.stylegrid style | types · strong | victory-core/lib/victory-theme/types.d.ts:46 |
| visx | native | GridRows, GridColumns | types · strong | @visx/grid/lib/grids/GridRows.d.ts:17 |
| ApexCharts | native | grid.show, grid.yaxis.lines.show | types · strong | apexcharts/types/apexcharts.d.ts:5267 |
| Tremor (npm) | native | LineChart.showGridLines | types · strong | @tremor/react/dist/index.d.ts:68 |
| Observable Plot | native | grep: gridgrid: true / gridX / gridY marks | grep · weak | @observablehq/plot/src/scales.d.ts:317 |
| Vega-Lite | native | grep: grid | grep · weak | 786: "description" |
| AG Charts | native | grep: gridLine | grep · weak | ag-charts-enterprise/dist/types/src/axes/radius/radiusAxis.d.ts:4 |
| amCharts 5 | native | grep: gridrenderer.grid.template | grep · weak | @amcharts/amcharts5/.internal/plugins/json/Classes.d.ts:111 |
| Google Charts | native | grep: gridlines | grep · weak | @types/google.visualization/index.d.ts:530 |
| uPlot | native | Options.axes.grid | types · strong | uplot/dist/uPlot.d.ts:1120 |
| TradingView Lightweight Charts | native | grep: gridvertLines / horzLines | grep · weak | 374: * - Whitespace is ignored for the crosshair and grid lines |
| MUI X Charts | native | LineChart.grid | types · strong | @mui/x-charts/LineChart/LineChart.d.mts:30 |
| Mermaid (chart-ish diagrams only) | unknown | — | conflict · unknown | — |
| AntV G2 | native | grep: grid | grep · weak | @antv/g2/lib/component/axis.d.ts:17 |