Axis
The Axis component in Recharts is a powerful tool for customizing and configuring the axes of your charts. It provides a wide range of props that allow you to control the appearance, behavior, and formatting of the axis. Whether you're working with an AreaChart, LineChart, or any other chart type, the Axis component enables you to create precise and informative visualizations.
Basic Example
Multiple Axes
Multiple axes can be used for displaying different data series with varying scales or units on the same chart. This allows for a more comprehensive comparison and analysis of the data.
Choosing Location of Labels for Axes
The axes label
can take several positions. The example below allows you to try out different locations for the x and y axis labels.
X Label Position:
X Label Offset:
Y Label Position:
Y Label Offset:
API Reference
rx.recharts.XAxis
An XAxis component in Recharts.
Event Triggers
See the full list of default event triggersrx.recharts.YAxis
A YAxis component in Recharts.
Event Triggers
See the full list of default event triggersrx.recharts.ZAxis
A ZAxis component in Recharts.