Wick Charts

YAxis

import { YAxis } from '@wick-charts/react';
 
<YAxis />

Renders ticks and labels along the right edge of the chart. The 1-2-5 “nice number” snap keeps tick values readable at any zoom; pass format to customise the label string.

Renders ticks and labels along the right edge of the chart. The 1-2-5 “nice number” snap keeps tick values readable at any zoom; pass format to customise the label string.

Props

format?ValueFormatter

Custom tick-label formatter. When supplied, overrides the built-in range-adaptive formatter for this axis.

labelCount?number

Desired number of labels (≥ 2). Overrides any chart-level axis.y.labelCount. Realized count may differ ±1 after the 1-2-5 snap.

minLabelSpacing?number

Minimum pixel gap between adjacent labels (hard floor). Overrides chart-level.