How to Edit a Chart Legend in Microsoft Excel
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.

- 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.
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.
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.
Click anywhere on the chart you want to modify. This will reveal the Chart Design tab on the top ribbon.
Navigate to the Chart Design tab and click on the 'Select Data' button located in the Data group.
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.
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.
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 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. Select your Chart: Open your spreadsheet in WPS Office and click on the chart you want to edit.
- 2. Click Select Data: Navigate to the Chart Tools tab on the top ribbon and click 'Select Data'.
- 3. Modify the Series: Choose the series you want to rename in the Legend Entries list and click the 'Edit' button.
- 4. Apply Changes: Input the new name or select the source cell, then click OK to update the legend instantly.

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.




