How to Fix Excel Chart Labels Differing Between Scatter and Line Charts
Question details
User experiences mismatched marker labels when applying Value from Selected Cells to different chart types like scatter, line, and stock charts.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Adding custom data labels from selected cells to a line, scatter, or stock chart.
- Observed behavior
- Scatter charts display the labels correctly based on numeric X-axis values, but line and stock charts mismatch labels due to category axis ordering behavior.
Ensure you have identified the exact column containing your X-axis categories (or dates) and the corresponding column containing your custom label values.
Sort X-Axis Data in Ascending Order Before Labeling
Sort your source data by the X-axis before applying labels to ensure category axes in line and stock charts align correctly with your custom labels.
Scatter plots treat the X-axis as continuous numeric values, automatically matching adjacent data based on coordinates. Line and stock charts, however, use category axes and plot points in the exact order they appear in the spreadsheet rows. Sorting ensures the selected label range perfectly corresponds to the plotted category points.
Highlight your entire data range, including the X-axis (date or category), Y-axis (values), and the custom label columns.
Navigate to the Data tab on the ribbon and click the Sort button. Sort by the column containing your X-axis or date data in Ascending order (Oldest to Newest or A to Z).
Click on your line or stock chart to select it, then click the Chart Elements icon (the plus sign next to the chart) and check the box for Data Labels.
Click the arrow next to Data Labels, choose More Options to open the formatting pane, check the Value From Cells box, and select your custom label range again.

Use WPS Spreadsheet for Seamless Charting
WPS Office offers a powerful, user-friendly Spreadsheet tool that handles complex chart data, custom data labels, and various chart types effortlessly.
- 1. Open your dataset: Launch WPS Spreadsheet and open your existing workbook containing the chart data.
- 2. Sort the data: Highlight your data and use the Sort feature in the Data tab to organize your X-axis in ascending order.
- 3. Insert the chart: Go to the Insert tab, click Chart, and select your preferred chart type (Scatter, Line, or Stock).
- 4. Apply custom labels: Click Add Chart Element, select Data Labels, and choose Value From Cells to apply your specific text labels.

Frequently Asked Questions
Why do scatter plots handle out-of-order data better than line charts?
Scatter plots use value axes for both X and Y, plotting exact numerical coordinates regardless of spreadsheet row order. Line charts use a category axis for the X-axis, which plots points strictly in the top-to-bottom row order they appear in the spreadsheet.
How do I select data labels from a specific cell range?
Select your chart, click the Chart Elements icon (+), hover over Data Labels, click the arrow for More Options, check the 'Value From Cells' box in the Label Options pane, and highlight your desired cell range in the worksheet.
Will changing the chart type from scatter to line cause me to lose my custom labels?
The labels themselves will remain applied, but they may shift or map incorrectly to the data points if your source data is not sorted in ascending order. This happens because line charts process the X-axis as categories rather than continuous numeric values.




