Fix an Excel Chart That Displays as a Straight Line
Question details
The user needs to correct an Excel chart that appears as a straight line after new data is pasted, despite source values that should produce a different shape.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Pasting new source data into a worksheet used by an existing chart.
- Observed behavior
- The chart displays a straight line instead of the expected variation.
Locate the chart's source X and Y columns and confirm whether the X values represent numbers, dates, or category labels. Check the chart type, since a line chart and an XY scatter chart handle horizontal spacing differently.
Check X-axis values, data types, and spacing
Start here if large gaps, irregular intervals, or incorrectly interpreted X values may be compressing the plotted data.
A very large X value or date gap can squeeze most points into a small part of the chart, making the series look nearly straight. Uneven spacing is not necessarily an error; verify it against the intended data before changing values.
Select the worksheet cells containing the X values. Look for unexpected dates, unusually large numbers, blank cells, or numbers stored as text.
For numeric cells displaying Excel's error indicator, click the warning icon and choose Convert to Number. For dates stored as text, select the column and use Data > Text to Columns, choosing the appropriate date order in the final step. Changing cell formatting alone does not convert text into numeric values.
Select the entire source table, including all related Y columns, and open Data > Sort. Sort by the X-value column from Smallest to Largest or Oldest to Newest. Keep each X value paired with its original Y values.
Compare consecutive X values for unexpected jumps and correct only confirmed errors. If numeric X intervals must control point spacing, select the chart and choose Chart Design > Change Chart Type > XY (Scatter). Choose a scatter subtype with markers or lines as needed.

Verify chart series ranges and axis scaling
Use this if the X values look correct but the chart still appears straight after the paste.
Build an XY Scatter Chart in WPS Spreadsheet to Check Your Data
Use WPS Spreadsheet to inspect the pasted values, sort complete rows by X, and create an XY scatter chart that reflects numeric horizontal spacing.
- 1. Open the workbook: Launch WPS Spreadsheet and choose Open to load the Excel workbook containing the source data.
- 2. Inspect the X and Y columns: Click the source cells and review their values in the formula bar. Correct confirmed typing errors and ensure numeric values are not stored as text.
- 3. Sort the complete source table: Select all related source columns, open Data > Sort, and sort by the X-value column in ascending order while keeping rows together.
- 4. Create a scatter chart: Select the numeric X and Y columns, then open Insert > Chart and choose an XY scatter chart. Review the plotted spacing and check any isolated points against the source values.

Frequently Asked Questions
Why does a large X-axis gap make my chart look like a straight line?
On an XY scatter chart or a date-scaled axis, a large gap expands the horizontal range and compresses nearby points. Select the source table, use Data > Sort to order the X values, and inspect the largest jumps for incorrect numbers or dates.
Should I use a line chart or an XY scatter chart?
Use an XY scatter chart when numeric X values and their actual intervals matter. A standard line chart with a text axis spaces categories equally. In Excel, select the chart and open Chart Design > Change Chart Type to switch types.
Can I sort just the X-value column?
No. Sorting only the X column can break the relationship between X and Y values. Select the full source table before using Data > Sort, or choose Expand the selection when Excel prompts you.
What should I check if sorting does not fix the chart?
Right-click the chart and choose Select Data to verify its series ranges. Then right-click the vertical axis, open Format Axis, and check for overly broad manual bounds. Also inspect the Y column for repeated values or an extreme outlier.




