Chart & Visualization Issues

How to Edit a Chart Legend in Microsoft Excel

Algirdas JasaitisAlgirdas Jasaitis Nov 3, 2026 870 views

Question details

The user needs to edit the text of a chart legend entry in Microsoft 365 Excel, which is normally linked to the chart series name.

How to Edit a Chart Legend in Excel
Product
Microsoft 365 Excel
Device & OS
not provided
Scenario
Customizing chart visualization and updating legend labels for better data presentation.
Observed behavior
Chart legend entries cannot be edited directly as independent text; they must be updated by modifying the linked series name or the source cell.
Before you start

Identify the chart and the specific legend entry you want to rename. Ensure your chart is linked to an active data range in your spreadsheet.

Solution 1Recommended

Edit Chart Legend via Select Data Source

Update the legend entry by modifying the series name or its source cell reference in the chart settings.

Because Excel chart legend entries are linked to chart series names, you cannot edit them as independent text boxes. Changing the series name or its source cell will automatically update the legend on your chart.

1
Select the Chart

Click anywhere on the chart you want to modify. This will reveal the Chart Design tab on the top ribbon.

2
Open Select Data Source

Navigate to the Chart Design tab and click on the 'Select Data' button located in the Data group.

3
Edit the Legend Entry

In the Select Data Source dialog box, look under the 'Legend Entries (Series)' section. Select the specific series whose legend you want to change, and click the 'Edit' button.

4
Enter the New Name

Clear the Series name box. You can either type a new name directly (it will be enclosed in quotes) or select a new cell containing the desired legend text.

5
Apply Changes

Click OK to close the Edit Series dialog, then click OK again to close the Select Data Source dialog. The legend will now display the updated name.

Edit Chart Legend via Select Data Source
Direct Typing vs. Cell Reference: If you type a name directly into the Series name box, the legend will no longer update automatically if you change your worksheet data. Using a cell reference ensures dynamic updates.
Easy Chart Editing in WPS Office

Edit Chart Legends Easily with WPS Spreadsheet

WPS Spreadsheet offers a highly intuitive interface for creating and modifying charts. You can easily edit chart legends, series names, and data sources with full compatibility with Microsoft Excel formats (.xlsx).

  1. 1. Select your Chart: Open your spreadsheet in WPS Office and click on the chart you want to edit.
  2. 2. Click Select Data: Navigate to the Chart Tools tab on the top ribbon and click 'Select Data'.
  3. 3. Modify the Series: Choose the series you want to rename in the Legend Entries list and click the 'Edit' button.
  4. 4. Apply Changes: Input the new name or select the source cell, then click OK to update the legend instantly.
Seamlessly open and edit Excel (.xlsx) files without formatting loss.Quickly customize chart elements, including legends, titles, and axes.Free and lightweight alternative to Microsoft 365.Intuitive UI similar to Microsoft Office for a zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I just click and type on the legend to edit it?

Excel links legend entries directly to the data series names in your worksheet. To ensure data consistency, you must update the source data or the series name via the Select Data Source dialog rather than editing the text directly on the chart.

How do I hide a specific legend entry without deleting the data?

You can click the legend to select it, then click the specific legend entry again to select only that item. Press the Delete key to remove it from the legend. This hides the label while keeping the data series visible in the chart itself.

Will changing the series name affect my formulas?

If you edit the series name directly in the 'Select Data' dialog by typing a new name, it will not affect your worksheet formulas. However, if you change the text in the source cell itself, any formulas referencing that cell will use the updated text.

Can I format the text style of the legend?

Yes, you can format the font, size, and color of the legend text. Right-click the legend box, select 'Font', or use the formatting tools on the Home tab ribbon to apply your desired text styles.