XAxis
The XAxis component configures the x axis of a CartesianChart component, LineChart component, or BarChart component.
XAxis(props: XAxisProps): ComponentReturnType| Type | Description | |
|---|---|---|
props | XAxisProps | |
| returns | ComponentReturnType |
It is a configuration child rather than a separately rendered SVG element: include zero or one XAxis component in a chart's children. If omitted, the x axis is inferred from the chart's series.
See the Axis Overrides (React) demo for this component in action:

Since
v8.5.0