GuidesGoogle Sheets

How to add an X axis in Google Sheets

Learn how to add, label, and customize the X axis on a Google Sheets chart using the Chart editor's axis settings.

Quick answer

To add an X axis in Google Sheets, select your data, insert a chart, then open the Chart editor's Customize tab and click Horizontal axis. From there, add an axis title, adjust the range, format text, and change label frequency. Google Sheets automatically generates axis labels from your first data column or row.

Steps at a glance

  1. Select the data range you want to chart
  2. Insert a chart from the Insert menu
  3. Open the Chart editor's Customize tab
  4. Click Horizontal axis to expand its settings
  5. Add an axis title describing your data
  6. Adjust label format, font, and range if needed
  7. Close the editor to apply changes

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, double-click the chart and select the three-dot menu, then choose Edit chart to reopen it.

  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 add an axis title, change the text font, size, and color, and set the label angle for readability.

  6. Step 6

    Add an axis title and adjust the range

    Type a descriptive label in the Axis title field, such as "Month" or "Region," so viewers instantly understand what the horizontal axis represents. If you need to focus on a specific portion of your data, adjust the min and max values or change the label frequency to reduce clutter.

  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 save your changes. 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. If you import a CSV file or paste in external data, Google Sheets reads the first column as category labels once you build a chart from that range.

  • 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 and confirm the text appears in the Axis title field before closing the editor.

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

Start for free →