How to Add a Legend in Excel Chart (Manually & with Tools)

Table of Contents

Table of Contents

A legend is a section of a chart that explains what different colors, lines, shapes, etc. mean. It is a visual guide for users to understand each series better.

It is particularly helpful for multiple data series, and when the user isnโ€™t familiar with the data.

You can add a legend in Excel by using the Chart Element button or the Chart Design tab. Or, you can create them manually over your chart with shapes.

key takeaways

โžค Click on the chart to select it.
โžค Select the Chart Element Button that appears on the top-right of the chart.
โžค Check the Legend option.

selecting legend from chart elements

Each method has its unique upsides and downsides. For example, with the first method, you can do it the quickest. With the second method, you can add legends in all versions. With the last one, you have more flexibility with design and legend position.

In this tutorial, we will go through all the methods to add a legend in an Excel chart.


1

Using Chart Elements Button

The Chart Elements button is the plus icon button on the top-right of an Excel chart. It pops up after you select a chart.

This button allows users to quickly add or remove elements instead of going through all the options. It saves time and effort.

Letโ€™s go through our dataset first before diving into the process and how we are going to create a chart from it.

dataset to create legends

It contains temperatures of three cities across different months.

Steps to Create Chart:

โžค Select the data.
โžค Go to Insert >> Charts. Then select the type of chart you prefer.
We are choosing the Line Graph for the presentation.

selecting 2d line chart

Steps to Add a Legend to the Chart:

In some cases, Excel adds legend by default. In case it doesnโ€™t, you can follow these steps:

โžค Select the chart.
โžค Click on the Chart Elements button at the top-right of the chart.
โžค Then check Legend.

selecting legend from chart elements

The chart will now have legends added to it.

chart legends appeared


2

Using Chart Design Tab

Similar to the Chart Elements button, the Chart Design tab appears on the ribbon after you select the chart.

Besides adding/removing legends, you can also work with other elements, and change the chart type and data.

It works the same as the previous one. The first method shortcuts this process.

If you donโ€™t have access to the Chart Elements button (Excel for Mac, the web version of Excel, and some of the older versions), you must use this process.

Steps:

โžค Select the chart by clicking on it.
โžค Go to Chart Design >> Chart Layouts (group) >> Add Chart Element >> Legend.
โžค Select where you want to display your legend.

selecting the legend option from ribbon

Your chart will have the legend displayed now.


3

Adding Legends Manually

A bit unconventional, but you can add a legend in Excel charts manually.

In the previous methods, the legendโ€™s display style is fixed. And, it can only be in four positions.

With this method, you have more flexibility in terms of design and chart legend positions.

The goal is to create and customize shapes within the chart with text boxes to mimic a legend.

Steps:

โžค Select the chart. (You must select the chart before inserting any shapes to include them in the chart)
โžค Go to Insert >> Illustrations (group) >> Shapes.
โžค Pick a shape of your choice. We are selecting rectangles here.

selecting a shape to insert in chart
โžค Place the shape over your chart.
โžค Select the shape if it isnโ€™t still selected.
โžค Go to Shape Format >> Shape Styles (group) >> Shape Fill. Then select the color you want to represent from the graph.

using shape fill option to fill the shape
You can also change the color of the graphโ€™s area along with the shape fill to match each other.

โžค Now go to Insert >> Text (group) >> Text Box. (make sure the chart is selected before this)

textbox option in the ribbon
โžค Insert the box beside the shape and add the elementโ€™s name as text.

legend added manually
โžค Repeat the process for all the legends.

As you can see, you have to add all the legends individually in this process. So, you might want to avoid this for charts of large and complex datasets.

It also doesnโ€™t update automatically as you are using completely different elements. These elements donโ€™t have any connection with other elements besides being just a part of the same chart.

If you want different designs and positions for the chart element, then this could be a helpful one.


Downloadable Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Add Legend in Chart.xlsx


Frequently Asked Questions

How do I put a legend in order in Excel?

To change the legend order, select the chart >> Go to Chart Design >> Data (group) >> Select Data. In the Select Data Source dialog box, you will find the Legend Entries section. You can select the legends and change the order with the up or down key within the box to change the orders.

How do I remove a legend from my chart?

To remove a legend, just click on the legend and press the  Delete  button on your keyboard. You can uncheck the Legend option from any of the methods to remove them too.

How can I change the location of the legend?

Regardless of the method you choose to add legend (except manually inserting shapes), you have the option to choose where your legends will be in the chart.

This is usually in the form of a right arrow beside Legend selection option. It is available in both the Chart Elements and Design tab.

How do I resize the legend?

Click on the legend section and a rectangular area will appear. Click and drag the corner of it to resize it.

How to edit the text in the legend entries?

Go to Chart Design >> Select Data. You will find the Legend Entries section here. You can edit the legends here by changing the series name (legend text) and series source (chartโ€™s values).


Wrapping Up

In this tutorial, we have covered different ways to add a legend in Excel charts. In the later versions of Excel, you can use the Chart Element button. Or, you can use the Chart Design tab for any version.

We have also demonstrated a method to manually insert each legend. This offers more flexible design options.

Feel free to download the practice file and let us know about your feedback.

Facebook
X
LinkedIn
WhatsApp
Picture of Abrar Niloy

Abrar Niloy

Abrar-ur-Rahman Niloy holds a Bachelor of Science in Engineering and has over 4 years of experience with Excel and Google Sheets. He specializes in data analysis using charts, pivot tables, and advanced filtering, as well as workflow automation with Google Apps Script and Excel VBA. Notable projects include developing automated trackers and reporting tools for personal and professional use. Niloy is passionate about improving productivity through smarter spreadsheet design and automation.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo