How to Add Labels to Legend in Google Sheets (Step-by-Step)

Google Sheets provides users the ability to create a wide variety of charts to visualize their data. Charts provide an effective way for you to understand differences, proportions, and trends in your data.

But just displaying a chart with a bunch of columns or lines of different colors is not enough.

The person looking at your chart should be able to gain insight into what they mean. That is why it is important to include a legend with your chart that tells the viewer what each of these lines, shapes, or colors means.

Google Sheets does provide the option to include legends with labels in a chart. However, the default labels provided may not exactly appear the way you want them.

In this tutorial, we will show you how to add labels to legends in Google Sheets charts, if they’re not already displayed. We will also show you how to change different settings for the labels, like position, format, and text.

 

 

Creating a Chart From a Given Dataset

Before talking about label legends, let us just take a quick look at how to create a chart from given data. If you already know how to do that, you can skip to the next section.

Let’s say you have the following data and would like to create a pie chart to see how much each employee contributed to the total sales:

 how to add labels to legend in google sheets

To create a chart, simply do the following:

  1. Select the data
  2. Navigate to Insert->Chart from the menu. Navigate to Insert->Chart from the menu.
  3. This will insert a chart and display a ‘Chart Editor’ as a sidebar to the right of your browser window. This will insert a chart and display a ‘Chart Editor’ as a sidebar to the right of your browser window.
  4. If you need to change the type of chart, simply select the type of chart you want by clicking on the dropdown under the Chart Type section of the Chart editor.

To learn more about making Pie Charts in Google Sheets, check out our in-depth article here.

 

How to Add Labels to Legend in Google Sheets Charts

Most charts come with a label legend automatically when created. If the label legend is not already displayed, then you can add it by doing the following:

In the Chart editor, under the ‘Setup’ tab, click the ‘Add Label’ box, under the ‘Label’ section.

How to Add Labels to Legend in Google Sheets Charts

Select the cell range that includes your chart data.

how to add labels to legend in google sheets

You should see your selected data displayed as labels in your chart.

You should see your selected data displayed as labels in your chart.

If you want to remove labels, simply uncheck the box next to ‘Use column as labels’ at the bottom of the Chart editor.

Note: At any point of time, you can make the Chart editor appear by simply double-clicking on the chart. Alternatively, you can single click on the chart, click on the three dots icon on the top left and select the ‘Edit the chart’ from the menu that appears.

 

Setting the Position of the Legend in your Chart

If you don’t like how or where in your chart your legend is displayed, you can go ahead and change it as follows:

  1. Select the ‘Customize’ tab in the Chart editor. Setting the Position of the Legend in your Chart
  2. Select the ‘Legend’ section
  3. Click on the dropdown under ‘Position’.
  4. Select the position where you would like the legend to be displayed.

Note: You can also choose to not have any legend displayed by selecting the ‘None’ option from the Position options.

 

Formatting the Chart Legend in Google Sheets

The Chart editor in Google Sheets provides a wide variety of options for you to format the text in your labels. If you want to change the font size, color, or type of legend text, then follow the instructions below:

  1. Select the Customize tab in the Chart editor.
  2. Select the Legend section.
  3. If you want to change the legend’s font type, click the dropdown under ‘Legend font’ and select the font you like.
Formatting the Chart Legend in Google Sheets

      4. To change the font size, click the dropdown under ‘Legend font size’ and select the font size you like.

     5. To make the legend text bold or italicized, select or toggle the B and/or I buttons under ‘Legend format’.

     6. To change the color of the legend text, click on the dropdown under ‘Text color’ and select the color you like.

 

Note: The above steps will change the text format for all the legend labels. If you want to change the text for a particular label, then simply double-click on the label in the chart legend itself. This will open the ‘Text Formatting’ options for that particular label, from where you can format accordingly.

 

Adding or Editing the Text in the Legend Labels of your Chart

You might want to change the legend label to something other than what’s showing as the default labels. Google Sheets lets you change the text for each label individually.

Here’s what you need to do:

  1. Double-click the specific label that you want to change within the chart.
Adding or Editing the Text in the Legend Labels of your Chart

     2. This will open ‘Text formatting’ options for that individual label in the Chart editor.

     3. In the input box under ‘Text label’, you can enter the text you want to replace the default label text with.

     4. At this point, you can also change the formatting for that particular label by selecting your preferred font family, font size,  text style, and text color.

Here’s how our chart looks after all our settings:

how to add labels to legend in google sheets

If your legend labels don’t already show any text, then you can individually add the text that you want to display in the labels using the same steps as shown above.

Note: When using a column chart, the legends always reflect information about the data on the y-axis of your chart. So if you want the legend to display information about data that is along the x-axis, you will need to reverse the chart axes by clicking on the Chart editor’s Setup tab and checking the box next to ‘Switch rows/columns’ under the ‘Series’ section.

Adding graphs to your worksheets not only adds visual appeal, they also help provide better insights into the underlying data. But without legend labels, it sometimes becomes difficult to understand the visualizations clearly, thereby making it difficult to make inferences.

In this tutorial, we covered everything that you need to know on how to add labels to legends in Google Sheets charts. We hope you found it helpful.

For more information on Charting, check out our list of articles on Charts in Google Sheets.

Nahid
+ posts

Nahid Akhter is a writer, programmer, and online course content creator. She has an MS in Computer Science and has been in the education line for more than 14 years. Her specialization is in programming and Tech-writing, and her areas of interest include Office productivity, Artificial Intelligence, and Web design and development.