Chart.YAxis

Ticks and labels up the side.

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

API

PropTypeDefault
axisLinebooleanfalseDraw the line along the axis itself.
hidebooleanfalseKeeps the scale but draws nothing — the axis still shapes the plot.
minTickGapnumber4Minimum pixels between two labels before ticks start being dropped.
tickCountnumber5Target number of ticks. The scale rounds it to readable intervals.
tickFormatter((value: string | number) => string)Formats each label. Use it for units and locale.
tickLinebooleanfalseDraw the short mark beside each label.
tickMarginnumber8Gap between the axis and its labels.

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

hide keeps the scale and draws nothing, which is what you want behind bars that carry their own labels.