How to add an X axis in Google Sheets

Add and label the X axis on a Google Sheets chart from the Chart editor's Customize tab: set the axis title, then style its labels. Interactive demo included.

Quick answer

To add an X axis in Google Sheets, select your data, insert a chart, then open the Chart editor's Customize tab. Add the title under Chart & axis titles > Horizontal axis title, and style the labels under Horizontal axis. Google Sheets automatically generates axis labels from the first column of your data.

Steps at a glance

  1. Select the data range you want to chart
  2. Insert a chart from the Insert menu
  3. If Sheets picks a pie chart, switch Chart type to Column chart
  4. Open the Chart editor's Customize tab
  5. Click Horizontal axis to expand its settings
  6. Under Chart & axis titles, pick Horizontal axis title and type it
  7. Adjust label font, format, and slant if needed
  8. Close the editor to apply changes

Interactive demo

Loading demo…

Summary

The X axis in a Google Sheets chart displays the categories, dates, or numeric values from your first data column, and Google Sheets lets you label, format, and adjust it through the Chart editor's Customize tab. Configuring this axis properly makes your chart easier to read and more professional for reports or presentations.

Step-by-step guide

  1. Step 1

    Select your data range

    Highlight the cells you want to visualize, including the column or row you want to appear along the horizontal axis, such as dates, months, or category names. Google Sheets uses this first column as the default X axis source.

  2. Step 2

    Insert a chart

    Click Insert in the top menu, then choose Chart. If you haven't built a chart yet, follow the steps to create a chart before continuing, since the X axis settings only appear once a chart exists on your sheet.

  3. Step 3

    Open the Chart editor

    The Chart editor panel opens automatically on the right side of your screen. If it's closed, click the chart, open its three-dot menu, and choose Edit chart to reopen it. If Sheets suggested a pie chart, change Chart type on the Setup tab to Column chart, because pie charts have no X axis.

  4. Step 4

    Go to the Customize tab

    Inside the Chart editor, click the Customize tab at the top of the panel. This tab contains all the formatting options, including chart style, series colors, and both axis settings.

  5. Step 5

    Expand the Horizontal axis section

    Scroll down and click Horizontal axis to expand its options. Here you can change the label font, size, bold or italic style, and color, reverse the axis order, and slant the labels for readability.

  6. Step 6

    Add an axis title and adjust the range

    Open Chart & axis titles, choose Horizontal axis title from the dropdown, and type a descriptive label in the Title text field, such as "Month" or "Region," so viewers instantly understand what the horizontal axis represents. To change which data the axis covers, edit the Data range on the Setup tab.

  7. Step 7

    Review and close the editor

    Check the chart preview to confirm the axis labels display correctly, then click the X in the top corner of the Chart editor to close it. Your changes apply as you make them. If your chart needs a key to distinguish data series, you can also add a legend for extra clarity.

Why this matters

You're building a sales trend or performance chart, and the horizontal axis shows unclear or unlabeled data points. Adding a proper X axis title and formatting makes the timeline or categories instantly readable, so anyone viewing the chart understands what each column of data represents without extra explanation.

Frequently asked questions

  • Can I change what data appears on the X axis after creating the chart?

    Yes. Open the Chart editor, go to the Setup tab, and edit the data range or switch which column is used for the X axis category.

  • Does Google Sheets support importing data to build the X axis automatically?

    Yes. When you build a chart from imported or pasted data, Google Sheets uses the first column of the range as the X axis labels. The Setup tab shows this as the X-axis field.

  • Why is my X axis blank even though I added a title?

    This usually happens when the chart type doesn't support axis titles, such as pie charts, or when the title field wasn't saved. Reopen the Customize tab, open Chart & axis titles, pick Horizontal axis title, and confirm the text appears in the Title text field.

Create interactive demos like this one — free, no coding required.

Start for free →