Sub topic 9
Positioning and Styling the Legend
Prerequisites: you should know how to insert a chart, open the Chart editor, and identify rows or columns that contain series data.
A legend explains which visual mark belongs to each data series. A series is a related group of values, such as sales for each region. In a line chart, the legend usually maps each line colour to a series name. In a column chart, it maps each column colour to a name.
Choose a useful legend position
Select the chart, open the Chart editor, and choose Customize. Open Legend to change its position and appearance.
Google Sheets provides positions such as:
- Right: the usual default for charts with several series.
- Bottom: useful when the chart is wide and the series names are short.
- Top: useful when the chart has little vertical content.
- Left: useful when the chart is placed beside other content.
- In chart: saves space, but can cover data.
- None: removes the legend.
Choose the position that leaves the data easiest to read. A legend should not cover bars, lines, labels, or important empty space.
| Chart situation | Useful legend choice |
|---|---|
| Two short series in a wide chart | Bottom |
| Several series with long names | Right |
| One clearly labelled series | None |
| A small chart with limited space | In chart, if it does not cover data |
The legend uses the series names detected from the source range. If the names are missing or incorrect, fix the source headers or edit the series settings in Setup before styling the legend.
Style the legend
In Customize > Legend, change the legend font, font size, format, and text colour. Use a readable font size that remains clear when the chart is resized. Keep the legend text visually quieter than the chart title and the data itself.
Use the same colour for a series everywhere in a report. For example, if North is blue in one chart, keep North blue in related charts. This lets readers compare charts without relearning the colour key.
You can also format individual series under Customize > Series. The colour chosen for a series appears in the legend automatically. Do not choose similar colours for different series, especially when the chart has many lines or columns.
Decide whether to keep the legend
Keep the legend when:
- The chart contains two or more series.
- The series names are needed to understand the chart.
- Colours or symbols alone would be ambiguous.
Remove the legend when:
- The chart has one series and its title or axis already explains it.
- You have added direct labels to the data.
- The legend takes more space than the information it provides.
A legend is part of the chart's explanation, so check it at the final display size. A legend that looks clear on your screen may wrap or become crowded after you move the chart into a document.
Exercise
A chart has four lines, but the legend on the right makes the plot area too narrow. What should you try first?
Show answer
Try moving the legend to the bottom and shortening the series names. If the legend is still unnecessary because the lines have direct labels, remove it instead.