Pie chart glossary · Updated November 20, 2026 by Ryan Doyle, who built Pie Chart Generator.

What Is a Legend in a Chart?

A legend, also called a key, is the box beside a chart that matches each color, pattern or symbol to the category it stands for. On a pie chart each legend entry pairs one slice's color with that slice's name. With five or fewer slices, we find labels on the slices clearer than a legend.

What a legend contains

Each entry is a small swatch (a colored square, a line style or a marker) and a label. A pie chart has one entry per slice. A line or bar chart has one entry per data series, not per data point.

Keep the entries in the same order as the chart. On a pie chart that means the order of the slices, clockwise from 12 o'clock, so the reader's eye moves the same way in both places.

Legend or labels on the slices?

Most pie charts are small enough to label directly. The median chart in our download log (20,428 charts, January 29 to November 21, 2026) had 5 slices, and 78.5% had six or fewer. At that size, a name or percentage on each slice saves the reader from matching colors back and forth.

Color matching also fails for some readers: about 1 in 12 men and 1 in 200 women have a color vision deficiency (Colour Blind Awareness). Labels on the slices work for them; a color-only legend may not.

A legend earns its place when slices are too thin to hold text, when there are many categories, or when several charts share one set of colors and a single legend explains them all.

SituationUse
2 to 5 slices, each big enough for textLabels on the slices, no legend
6 to 8 slices, some thinLabels on the big slices, leader lines or a legend for the rest
Several pies with the same categoriesOne shared legend
More than 8 categoriesFold small ones into Other, or switch to a bar chart

Where to put the legend

To the right of the chart on wide layouts such as slides and dashboards; below the chart on phones and narrow document columns, where a side legend squeezes the circle. Keep it close to the chart and never make the reader scroll between the two.

How to show, hide or move a legend

  • Pie Chart Generator (this site): open the Legend section in the editor, switch Show Legend on or off, and pick its position. It starts on, at the right.
  • Excel and PowerPoint: click the chart, click the Chart Elements (+) button beside it, and tick or untick Legend. The arrow next to Legend sets its position. To rename or reorder entries, right-click the chart, choose Select Data, and edit the series or category names.
  • Google Sheets: double-click the chart, open Customize in the chart editor, then Legend, and choose a position or None.
  • Power BI: select the visual, open Format your visual, and switch Legend on or off; the Options under it set the position.

Legend mistakes

  • Entries in a different order from the slices.
  • Two colors so close that the legend can't separate them.
  • A legend that repeats what is already printed on every slice.
  • Entries for categories with a value of zero, which have no slice to point to.

Related terms

  • Data label: A data label is the text printed on or next to a slice, usually its name, value or percentage.
  • Leader line: A leader line is a thin line connecting a label outside the pie to the slice it describes.
  • Color palette: A color palette is the fixed set of colors a chart assigns to its slices, usually given as hex codes.
  • Colorblind-safe palette: A colorblind-safe palette is a set of colors that stay distinct for people with color vision deficiency, most often red-green.
  • Category: A category is one group in your data, and on a pie chart each category is one slice.

Questions

Frequently asked questions

Is a legend the same as a key?

Yes. Legend is the usual word in Excel, Google Sheets and most chart software; key is common in schools and on maps. Both match symbols or colors to what they mean.

Does a pie chart need a legend?

Not always. If every slice is big enough to carry its own name or percentage, direct labels are clearer and the legend can go. Use a legend when slices are too thin to label or when several charts share the same colors.

Where should a chart legend go?

To the right of the chart for wide layouts, below it for phones and narrow columns. Keep the entries in the same order as the slices or series.

Sources (read November 20, 2026)

  1. Add and edit a chart or graph, Google Docs Editors Help: chart editor Customize tab.
  2. Colour Blind Awareness: about 1 in 12 men and 1 in 200 women.
  3. Our pie chart statistics: slice counts, January 29 to November 21, 2026.