Are you an AI agent?

XAxis· also exported as TimeAxis

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

The X axis labels of any axis.x.type — time, numeric or category.

Renders tick marks and labels along the X axis — time by default, or numbers / category names with axis={{ x: { type: 'numeric' | 'category' } }} on <ChartContainer>. Density adapts to viewport width and is bounded by the labelCount and minLabelSpacing props (which override the chart-level defaults); format customises the label, the crosshair label and the tooltip header. Leaving out <XAxis> keeps its empty row; axis={{ x: { visible: false } }} removes it.

Props

labelCount?number

Desired number of labels (≥ 2). Overrides chart-level axis.x.labelCount.

minLabelSpacing?number

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

format?default time formattingXAxisFormatter

Custom label formatter. x is epoch ms on a time axis, the number on a numeric axis, the category name on a category axis; step is the tick spacing. Also formats the crosshair label and the tooltip / info-bar headers. Default: time formatting, a locale number, or the name.