Chart & Visualization Issues

Replace Numeric X-Axis Labels in an Excel Scatter Chart

Huma Ashraf ChHuma Ashraf Ch Nov 25, 2026 869 views

Question details

The user wants to display text labels such as D-22, I2, and E12 along the horizontal axis of an Excel chart.

Replace Numeric X-Axis Labels in an Excel Scatter Chart
Product
Microsoft Excel
Device & OS
not provided
Scenario
Creating a chart with text categories on the horizontal axis and numeric values on the vertical axis.
Observed behavior
An XY Scatter chart uses numeric values on both axes, so text cannot directly replace its horizontal axis numbers.
Before you start

Place the text labels and their corresponding numeric values in adjacent columns, with one label and value per row. A line chart spaces categories evenly, so check whether preserving numeric X-axis spacing is important.

Solution 1Recommended

Use a Line Chart with Markers for Text X-Axis Labels

Use this method when equally spaced text categories can replace the numeric X-axis positions.

1
Select the chart data

In the worksheet, select the adjacent columns containing the text labels and numeric values, including headers if present.

2
Insert a line chart

Choose Insert > Line or Area Chart > Line with Markers. Excel should use the text column as the horizontal category labels.

3
Set the labels if needed

If the labels are incorrect, right-click the chart and choose Select Data. Under Horizontal (Category) Axis Labels, click Edit and select the cells containing the text labels.

4
Remove the connecting line

Right-click the plotted series and choose Format Data Series. Under Fill & Line > Line, select No line to leave the markers visible.

5
Adjust the axis position

Right-click the horizontal axis and choose Format Axis. Under Axis Options, choose On tick marks if you want the categories positioned on the tick marks.

Use a Line Chart with Markers for Text X-Axis Labels
Category spacing differs from scatter spacing: A line chart spaces categories evenly. It does not preserve the proportional numeric X-axis spacing of an XY Scatter chart.
Create charts with text categories

Display Text X-Axis Labels in WPS Spreadsheets

Use a line chart with markers in WPS Spreadsheets to display text categories along the horizontal axis, then remove the connecting line for a scatter-like appearance.

  1. 1. Open the data: Open WPS Spreadsheets and load the workbook containing the text labels and numeric values.
  2. 2. Select both columns: Select the label column and the adjacent numeric value column, including headers if available.
  3. 3. Insert a chart: Choose Insert > Chart, then select a line chart with markers.
  4. 4. Format the series: Right-click the plotted series, open Format Data Series, and set the line to No line while keeping the markers visible.
Display text category labels such as D-22 and I2 on the horizontal axisKeep markers visible without connecting linesWork with Microsoft Excel XLSX and XLS filesCreate charts in an easy-to-use spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I type text labels directly onto an Excel scatter chart's X-axis?

An XY Scatter chart uses a numeric value axis for the horizontal axis. Use a line chart with markers if you need text to appear as category labels.

How do I assign the correct horizontal labels in Excel?

Right-click the line chart, choose Select Data, and click Edit under Horizontal (Category) Axis Labels. Select the cells containing your text labels.

Will a line chart preserve the spacing of my scatter chart?

No. A line chart generally spaces categories evenly, while an XY Scatter chart positions points according to their numeric X values.

How can I make a line chart look like a scatter chart?

Choose a line chart with markers, then right-click the series and select Format Data Series > Fill & Line > Line > No line. The markers remain without connecting lines.