---
title: Axis
description: How to customize the axis of the charts component
---
This guide will show you how to customize the x and y axis of the charts
component.
:::note
The charts component is built on top of [Recharts](https://recharts.org). For
advanced usage, refer to their documentation.
:::
## X-Axis
### Custom Tick Formatting
To format the labels on the X-axis (e.g., abbreviate months from `January` to
`Jan` based on locale):
```tsx
```
### Rotate X-Axis Labels
If labels overlap, rotate them for better readability:
```tsx
```
### Adjust X-Axis Padding
Control the spacing between the first and last tick labels:
```tsx
```
### Hide X-Axis
If you need to remove the X-axis completely:
```tsx
```
### Custom X-Axis Labels
Render custom labels using a function:
```tsx
```
## Y-Axis
### Set Domain
Define the minimum and maximum values manually:
```tsx
```
### Format Labels
For example, converting values to percentages:
```tsx
`${value}%`} />
```
### Adjust Width
Control the space allocated to Y-axis labels:
```tsx
```
### Hide Y-Axis
To remove the Y-axis from the chart:
```tsx
```
### Custom Grid Lines
Enable or remove grid lines tied to the Y-axis:
```tsx
```
## Additional Customizations
### Multiple X or Y Axes
Overlay multiple axes in a single chart:
```tsx
```
### Reference Lines
Highlight a specific value with a reference line:
```tsx
```
### Axis Ticks and Lines
Remove the tick and axis lines by setting them to false.
```tsx
```