How to modify Excel chart legends: name and line style settings

When the legend shows “Series 1” or the names don’t match, how do you modify the series names in an existing chart and uniformly adjust the line styles and colors of multiple lines? This article provides the steps, common causes, and methods for verifying the results.

When creating Excel charts, the legend often shows"Series 1,""Series 2,"or the displayed names don’t match the data. The legend appears to be plain text that can be edited directly, but in fact it reflects each data series’ name and formatting; therefore, to change the legend, you must modify the series itself.

This guide is for those who have already created a chart in a spreadsheet and need to adjust the legend text or line styles. After reading it, you’ll be able to identify the source of legend issues, modify labels and line types using two different methods, and handle cases where multiple lines share the same style.

How do you change the legend of an Excel chart? One-sentence conclusion

The text on the legend comes from the series names, and the line styles and colors come from the series formatting; both can be modified directly in the chart itself without needing to delete and recreate it. First change the names in"Select Data,"then adjust the line styles in the Format pane—this will resolve most issues.

Your situationRecommended practiceReason
The legend displays "Series 1" and "Series 2".In the selection data, enter a name for each series, or reference a header cell.When the series name is empty, Excel automatically assigns numbers.
The table header was changed, but the legend didn't update accordingly.Change the series name to reference the corresponding header cell.Manually entered names are fixed text and do not change with the header.
Multiple lines should have consistent line styles and colors.Hold down the Ctrl key to select the series one by one, then set them all at once.A single setting ensures consistent styling and prevents oversight in updates.
I just want a certain item not to be displayed in the legend.After selecting and deleting this item in the legend, the data remains in the chart.What is deleted are legend items, not data series.
The chart has been exported to PDF.Go back to the source Excel file to modify the chart, then re-export the PDF.The PDF editor can edit paragraph text, but it cannot modify elements inside charts.

Before You Begin: First, Confirm These Points

Identifying the root cause of the issue before you start working can save a lot of time spent on repeated revisions.

  1. Check what the legend displays. If it shows"Series 1,"the series has no name; if it shows an old name, the name was entered manually or refers to the wrong cell. The approach differs depending on the situation.
  2. Verify the data source. Whether the series names and values come from a specific range in the worksheet determines whether you should edit the header row or the series settings. If the first row of the data range lacks headers, the legend will default to names like"Series 1."
  3. Confirm whether the chart and data are in the same file. You can directly modify the chart only if it resides within the Excel workbook. If the chart is pasted as an image or embedded in a PDF, return to the original Excel file to make changes.
  4. Back up the file before editing. Modifying a chart alters the source file directly, especially when working with shared workbooks. It’s advisable to save a copy first before proceeding.
  5. Decide how many lines you need to change. For a single line, proceed directly; for multiple lines requiring uniform styling, select them all at once to avoid inconsistencies that may arise from editing each line individually.

Steps to Modify the Legend Name in an Excel Worksheet

The following steps apply to charts that have already been created, with all modifications made within the chart itself.

  1. Select the chart. Click on a blank area of the chart; a border will appear around it, indicating that the chart is selected.
  2. Open Select Data. Right-click the chart and choose Select Data from the menu. This dialog box lists all the data series in the chart, which correspond to each item in the legend.
  3. Select the series you want to modify. In the list of legend items on the left, click the target series to confirm that it corresponds to the line or set of columns whose name you wish to change.
  4. Edit the series name. Click Edit and type the new name directly into the Series name box, for example, "Sales (in ten thousand yuan)."
  5. Reference a cell instead (recommended). If the header is already written, click the cell selection button next to the Series name box and directly select the header cell in the worksheet. When you later update the header, the legend will automatically synchronize.
  6. Confirm and check. Click OK to return to the worksheet and verify whether the legend has been updated. If there are multiple series, simply repeat steps 3 through 5.

Steps to Modify Legend Line Styles, with Unified Settings for Multiple Lines

The line styles in the legend change along with the series formatting, so to modify the line style, simply edit the series format.

  1. Open the Data Series Format pane. Double-click a line in the chart, and the Data Series Format pane will appear on the right. If the double-click is inaccurate, click the line once first, then double-click.
  2. Switch to the Line options. In the pane, locate the settings related to lines, including color, width, and line style (solid, dashed, dotted, etc.).
  3. Adjust the line style and color. Select the desired line style, color, and thickness. After adjustment, the lines in the chart and the markers in the legend will change synchronously, allowing you to verify them directly.
  4. Apply uniform settings to multiple lines. Hold down the Ctrl key and click multiple lines in the chart one by one to select them all at once. The pane will then apply the settings to all selected series, completing the uniform adjustment with a single change.
  5. Handle data markers. If the series includes data point markers, unify their size, shape, and color in the marker options; otherwise, the styles in the legend may not match those in the chart.
  6. Check distinguishability. When line colors are similar or differ only slightly in thickness, they can be easily confused when printed in black and white. If necessary, use different line styles—for example, combine solid lines with dashed lines—so that each line remains distinguishable.

Check each item after completion

After revising the legend, don’t rush to deliver it; a thorough check of each item can prevent rework later.

Check itemHow do you see it?What should I do if there is a problem?
Legend textCompare the names one by one with the column headers in the data table to verify their accuracy.In the selection data, check whether the series name refers to the correct cells.
Legend orderCheck whether the order of the legend corresponds to the order of the lines or bars.Adjust the series order using the up and down move functions in Select Data.
Line style and colorZoom in on the chart, or print a black-and-white copy, to see whether the lines can be distinguished.Adjust the thickness, switch to a different line style, or choose a different shape for the marker.
Is the data correct?Sample-check a few data points to confirm they match the values in the worksheet.Check whether the numeric range in the selected data has been inadvertently modified; if necessary, undo and redo.
Export ResultsIf the chart is to be included in a PDF or Word document, review the legend again after exporting.After making changes in the original Excel file, re-export it; do not modify the exported file directly.

If the chart is embedded in a PDF, neither the legend text nor the line styles can be edited directly. In this case, the safest approach is to return to the original Excel file, modify the chart, and then re-export it. PDF editors can modify paragraph text, signatures, fill out forms, and black out content, but they do not handle legend settings within charts.

❓ Frequently Asked Questions (FAQ)

1. Why does the legend display "Series 1" and "Series 2"?

Typically, the data range lacks a header row, or the series names are empty. By entering a name for each series in the Select Data dialog, or by referencing the corresponding header cells, the legend will display the correct text.

2. I changed the table header, but the legend didn’t update accordingly—what should I do?

Most often, the series name is fixed text entered manually. Open Select Data, change the series name to reference the corresponding header cell, then modify the header; the legend will synchronize automatically.

3. Can I directly double-click the legend text to enter a new name?

To modify the legend text, a reliable approach is to change the series names by selecting the data. This ensures that each name corresponds one-to-one with the data series, reducing the likelihood of errors when updating the data later.

4. If I delete an item from the legend, will the corresponding data also be deleted?

No. Deleting a legend item only hides that series from the legend; the line or bar in the chart remains, and the data range is unaffected.

5. I changed the legend line style, but in the PDF it still looks old—why?

The PDF is a snapshot taken at the time of export and will not update automatically if you modify the source Excel file. You need to return to Excel to edit the chart, then re-export the PDF.

📝 Summary

The text in the chart legend comes from the series names, while the line styles and colors are derived from the series formatting; you can make these changes directly within the chart. First, use Select Data to clarify the names, then use the Format pane to standardize the line styles, and finally verify each item after making adjustments. Breaking down how to modify an Excel chart legend into these two steps generally resolves most issues.

Open OmniDoc to process your spreadsheet file.

Updated 2026-11-29