How to Fix an Excel Scatter Chart Displaying Incorrect X-Values
Question details
The user needs to fix a scatter chart in Excel that displays incorrect X-values or appears as a line chart due to invalid data in the selected range.

- Product
- Microsoft Excel
- Device & OS
- Windows 10
- Scenario
- Creating or editing a scatter chart where the X-axis data does not plot correctly.
- Observed behavior
- The scatter chart displays incorrect horizontal-axis category labels or transforms into a line-like sequence because headers, blank rows, or text values were included in the data range.
Ensure that your dataset is clean and sorted. Identify the exact start and end rows of your numeric data, taking note to locate any header text, blank cells, or non-numeric strings that might be unintentionally selected in your current chart range.
Modify Chart Series to Exclude Headers and Text
Manually adjust the X and Y ranges for each chart series to strictly include numeric data rows, omitting headers, blanks, and invalid text.
When non-numeric values like headers, blank cells, or text (e.g., 'ZZZZZ') are included in a scatter chart's data range, the software treats the X-axis as categorical labels. This disrupts the proportional plotting of numeric data, making it appear like a standard line chart with evenly spaced points.
Right-click the problematic scatter chart and click on 'Select Data' from the context menu.
In the Select Data Source dialog box, choose the specific data series from the 'Legend Entries (Series)' list and click the 'Edit' button.
Check the 'Series X values' and 'Series Y values' fields. Modify the ranges so they only cover cells with numeric data. For example, change an inaccurate range like '=Sheet1!$F$1:$F$71' to the precise numeric range '=Sheet1!$F$3:$F$70'.
Click 'OK' to close the Edit Series dialog, then click 'OK' again to apply the new data range. Verify that the X-axis values are now plotting correctly on your scatter chart.

Create and Edit Accurate Scatter Charts with WPS Spreadsheet
WPS Spreadsheet provides intuitive data selection tools and precise chart formatting to ensure your scatter charts plot X and Y values correctly without hassle. It is a robust, highly compatible alternative for data visualization.
- 1. Open your data: Launch WPS Spreadsheet and open the workbook containing the data you want to plot.
- 2. Select the precise range: Highlight the exact numeric data range for your chart, intentionally avoiding column headers or rows containing text.
- 3. Insert the Scatter Chart: Navigate to the 'Insert' tab on the top ribbon and click the 'Scatter' chart icon to instantly generate an accurate visualization.
- 4. Fine-tune series data: If you need to make adjustments later, right-click the chart, choose 'Select Data', and directly modify the Series X and Y values using the visual range selector.

Frequently Asked Questions
Why is my scatter chart looking like a line chart?
This usually happens when the spreadsheet software encounters text, headers, or blank cells in your X-axis data range. It forces the chart to treat the X-values as categorical text labels, spacing them evenly like a line chart instead of plotting their actual numeric coordinates.
Can I include column headers in a scatter chart data range?
For a scatter chart, it is highly recommended to select only the numeric data for the X and Y values. If you include headers in the selection fields, the chart might misinterpret the data types and mess up the X-axis scale.
How do I fix incorrect category labels on my horizontal axis?
Right-click your chart and choose 'Select Data'. Edit your series and ensure the 'Series X values' box is referencing only the spreadsheet cells that contain your actual numeric data, explicitly omitting any extra header rows, blank rows, or text strings.




