Features · axis

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.

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.md.

LibraryStatusOptionVerificationSource
Chart.jsnativegrep: gridscales.y.grid.displaygrep · weakchart.js/dist/types/index.d.ts:1296
RechartsnativeCartesianGridtypes · strongrecharts/types/cartesian/CartesianGrid.d.ts:201
Apache EChartsnativeyAxis.splitLine.showtypes · strongecharts/types/dist/shared.d.ts:2830
HighchartsnativeyAxis.gridLineWidth, yAxis.gridLineColortypes · stronghighcharts/highcharts.d.ts:110189
Plotly.jsnativelayout.yaxis.showgrid, layout.yaxis.gridcolortypes · strongplot-schema.json#layout.layoutAttributes.yaxis.showgrid
NivonativeLine.enableGridX, Line.enableGridYtypes · strong@nivo/line/dist/types/types.d.ts:148
VictorynativeVictoryAxis.stylegrid styletypes · strongvictory-core/lib/victory-theme/types.d.ts:46
visxnativeGridRows, GridColumnstypes · strong@visx/grid/lib/grids/GridRows.d.ts:17
ApexChartsnativegrid.show, grid.yaxis.lines.showtypes · strongapexcharts/types/apexcharts.d.ts:5267
Tremor (npm)nativeLineChart.showGridLinestypes · strong@tremor/react/dist/index.d.ts:68
Observable Plotnativegrep: gridgrid: true / gridX / gridY marksgrep · weak@observablehq/plot/src/scales.d.ts:317
Vega-Litenativegrep: gridgrep · weak786: "description"
AG Chartsnativegrep: gridLinegrep · weakag-charts-enterprise/dist/types/src/axes/radius/radiusAxis.d.ts:4
amCharts 5nativegrep: gridrenderer.grid.templategrep · weak@amcharts/amcharts5/.internal/plugins/json/Classes.d.ts:111
Google Chartsnativegrep: gridlinesgrep · weak@types/google.visualization/index.d.ts:530
uPlotnativeOptions.axes.gridtypes · stronguplot/dist/uPlot.d.ts:1120
TradingView Lightweight Chartsnativegrep: gridvertLines / horzLinesgrep · weak374: * - Whitespace is ignored for the crosshair and grid lines
MUI X ChartsnativeLineChart.gridtypes · strong@mui/x-charts/LineChart/LineChart.d.mts:30
Mermaid (chart-ish diagrams only)unknown—conflict · unknown—
AntV G2nativegrep: gridgrep · weak@antv/g2/lib/component/axis.d.ts:17