Chart.Grid

The background grid; `horizontal` and `vertical` toggle each axis.

JanFebMarAprMayJun01020304050
Chart of Projects published over 6 points
monthProjects published
January24
February31
March28
April35
May42
June38
<Chart.Grid horizontal vertical />

API

PropTypeDefault
horizontalbooleantrueDraw the lines running across the value axis.
strokeDasharraystring"3 3"Dash pattern for the lines. Pass undefined for solid.
tickCountnumber5Target number of grid lines. The scale rounds it to readable intervals.
verticalbooleanfalseDraw the lines running along the category axis.

Plus every <g> prop. Source: chart/components/chart-grid.tsx.

Place it before the marks so it is drawn behind them.