YAxis

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

Renders ticks and labels in the value-axis column — on the right by default, or on the left with axis={{ y: { position: 'left' } }} on <ChartContainer>. 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 in the value-axis column — on the right by default, or on the left with axis={{ y: { position: 'left' } }} on <ChartContainer>. 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.

scale?default the default scalestring

Named Y scale (ChartContainer scales) this axis labels. Default: the default scale. An overlay scale has no column, so only format and the label density apply.