HomeGoogle DocsSpreadsheetAdd Legend Next to Series in Line or Column Chart in Google...

Add Legend Next to Series in Line or Column Chart in Google Sheets

Published on

The Legend is often located on the top part of a chart in Google Sheets. In the chart editor panel, you can see a Legend customization option which lacks moving the Legend next to series.

You can see the following Legend customization options in the chart editor.

  1. None
  2. Top
  3. Bottom
  4. Left
  5. Right
  6. Inside
  7. Labelled
  8. Auto

You can see that the Legend labeling (the 7th option above) is disabled by default in almost all the charts in Google Sheets. It’s greyed out.

If I am correct, there are 17 types of built-in charts in Google Sheets and only the Pie chart is an exception to the above.

Why should one add the Legend next to series (mainly in Line, Bar or Column Chart) in Google Sheets?

The Legend is an important part of charts in Spreadsheet applications. It helps us to identify chart data.

Actually, the Legend is a set of different color patterned markers called Legend Keys. A Legend Key has the same color as the series it represents and an identifying label.

There is a reason for explaining the above points about Legend and Legend Keys. What’s that?

Adding Legend next to series means adding Legend Key labels to each series (here in a line, column or bar chart). The marker is not required when moving Legend keys next to the series (line, column or bar).

Adding/moving the Legend next to the series requires different types of formatting for line and column/bar charts. Below I have explained those steps.

How to Add Legend Next to Series in Line Chart in Google Sheets

Assume you have the data of yearly wheat production in the EU and the US as below for the years 2015, 2016, and 2017 in Google Sheets.

ABC
1EUUS
2201516155
3201614262
4201715047

To create a line chart from this data with the Legend Key labels added next to the series, do as follows.

Step 1:

Format the data as below. As you may know data formatting can play a very important role.

ABCDE
1EUUS
2201516155
3201614262
42017150EU47US

Step 2:

Select the years in the range A2:A and format it as plain text. It’s available under Format > Number > Plain text.

Step 3:

Select the range A1:E4 and go to the menu Insert > Chart. Based on your data, Google Sheets will insert a chart suitable for it. Also it will open the chart editor panel on the right-hand side of your screen.

Step 4:

Make the following settings inside the Chart Editor.

  1. Change chart type to “Line” (under Chart Editor > Setup).
  2. Set “Legend” to “None” (under Chart Editor > Customize > Legend).
  3. Enable “Data Labels” and set “Type” to “Custom” (under Chart Editor > Customize > Series).

This way you can add the Legend next to series in line chart in Google Sheets.

If you want to personally look into the above chart settings, I will share my example Sheet at the end of this Google Sheets tutorial.

Legend Key Labels Next to Series in Line Chart

You can see the Legend Key labels EU and US in the plot area that next to the corresponding series.

Note: Do not use this method, if your chart has more series as it can clutter the Legend Key labels.

How to Add Legend Inside Columns in Column Chart in Google Sheets

Adding Legend next to the series is slightly different in column/bar chart compared to the line chart.

The changes is in the data formatting. Here the data should be formatted as below.

ABCDE
1EUEUUSUS
22015161EU55US
32016142EU 62US
42017150EU47US

Just follow all the settings detailed under the line chart above. Only change the chart type to Column/Bar.

Adding Legend Inside the Columns in Column Chart

This way you can add the Legend next to series in line/column/bar chart in Google Sheets.

Example Sheet – Chart Legend Settings

More Chart Tips and Tricks:

  1. Choose Suitable Chart for Your Spreadsheet Data – How To.
  2. How to Get Dynamic Range in Charts in Google Sheets.
  3. How to Create a Multi-category Chart in Google Sheets.
  4. Create a Gantt Chart Using Sparkline in Google Sheets.
  5. How to Move the Vertical Axis to Right Side in Google Sheets Chart.
  6. Get a Target Line Across a Column Chart in Google Sheets.
  7. Floating Column Chart in Google Sheets – How to.
Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

XLOOKUP in Excel: Working with Visible Rows in a Table

In Excel, the XLOOKUP function isn't inherently designed to exclusively work with visible rows;...

SUMPRODUCT Differences: Excel vs. Google Sheets

The core purpose of the SUMPRODUCT function remains consistent across both Excel and Google...

More like this

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

Analyzing Column A Between Non-Adjacent Values in Column B: Google Sheets

This tutorial addresses a common scenario encountered in Google Sheets: how to sum, average,...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.