---
url: https://chartbuddy.io/extension/docs/formatting/axes-and-gridlines.md
---
> Docs index: [llms.txt](https://chartbuddy.io/extension/docs/llms.txt)

# Axes and gridlines

A chart has a category axis and a value (range) axis, and a secondary value axis when some series are on it. You show or hide axes and gridlines from the right-click menu, and style them from the toolbar after you click them.

## Axis lines

Right-click an empty part of the chart. Under **Axes**, **Hide range axis** and **Show range axis** turn the value axis on and off; **Hide secondary axis** and **Show secondary axis** do the same for the secondary axis. Right-click an axis itself for **Show tickmarks** or **Hide tickmarks**, **Show all axis labels** or **Hide all axis labels**, and **Show axis title**.

Click the axis line to style it in the toolbar:

* **Color** of the line.
* **Width** of the line.
* **Position**: which side the axis sits on, **Left** or **Right** for a vertical axis, **Bottom** or **Top** for a horizontal one.

![A selected axis line with its toolbar](https://chartbuddy.io/images/formatting/axes-and-gridlines/01-axis-line-toolbar.png)

## Axis label position

Click a label on the category axis at the bottom of the chart. **Label position** in the toolbar sets where its labels sit:

| Option | Labels |
|---|---|
| **Chart Bottom** | At the bottom of the chart |
| **Below Axis Line** | Just below the axis line |
| **Above Axis Line** | Just above the axis line |
| **Above Chart** | Above the chart |

This matters when bars go below zero and the axis line is in the middle of the chart.

![A selected category label with the Label position options](https://chartbuddy.io/images/formatting/axes-and-gridlines/02-label-position.png)

## Category Position

On a Line, Stacked Area or 100% Stacked Area chart, click a category label. **Category position** in the toolbar has two options:

* **On axis edges**: the first and last category sit on the edges of the plot.
* **Centred like bars**: each category is centred in its slot, as bars are.

![A category label selected with the Category position toggle](https://chartbuddy.io/images/formatting/axes-and-gridlines/03-category-position.png)

## Gridlines

Right-click an empty part of the chart. Under **Axes**, **Show all horizontal gridlines** and **Hide all horizontal gridlines** (or vertical, for a sideways chart) turn the gridlines of the value axis on and off. Right-click an axis for its own **Gridlines** items, or a single gridline to show or hide only that one.

Click a gridline to style it: **Color** and **Line Style**.

![The chart's right-click menu with the gridline options](https://chartbuddy.io/images/formatting/axes-and-gridlines/04-menu-gridlines.png)

## Related

* [Axis breaks](https://chartbuddy.io/extension/docs/formatting/axis-breaks.md) – cut a long bar short
* [Label overflow](https://chartbuddy.io/extension/docs/formatting/label-overflow.md) – long category labels
* [Number formats](https://chartbuddy.io/extension/docs/data/number-formats.md) – how the value axis writes its numbers
