XAxis
You can customize the chart x-axis using the XAxis component:
import { Chart, XAxis } from "@highcharts/react";import { LineSeries } from "@highcharts/react/series/Line";export default function XAxisChart() {return (<Chart><XAxis plotBands={[{ from: 1, to: 2, color: "red" }]}>X axis values</XAxis><LineSeries data={[3, 4, 1, 5, 2]} /></Chart>);}
The XAxis component accepts all x-axis API options as props. The axis title text can be passed as children.