Labels and legends

How to label a chart so people can tell what it shows, from series and categories to data values.

Charts are mainly for showing patterns and relationships. Show exact values when knowing the number helps people understand the data, and only where the values can be displayed clearly without adding clutter. Names for series are on the Series tab.

For interactive charts, more values can be made available on hover. See Interaction.

Show values when the exact number matters

Don’t show values by default. Add them when knowing the exact number helps people understand or compare the data.

Do
Leave values off when people are comparing relative volumes.
Don't
Don’t add a value to every bar when the axis already provides what people need.

Place values close to the data they describe

When you show values, place them close to the data they describe, such as inside a segment, at the end of a bar or beside a data point. Make sure it is clear which data each value belongs to.

Do
Place each value at the end of its bar.
Don't
Don’t position values where it is unclear which bar they belong to.

Show values only when they remain readable

Don’t let values overlap other values, labels or important data, and make sure they stay clearly readable against their background.

If there isn’t enough room to show a value clearly, leave it out and make it available another way where appropriate, such as in a tooltip or a table.

Do
Show values inside segments with enough room, and omit them from small ones.
Don't
Don’t force a value into every segment.

Show only the values that matter on dense charts

On dense charts, such as line, scatter and bubble charts, show or label only the points people need to read or identify. For a line, that might be the latest value, a notable high or low, or a significant change. For a scatter or bubble chart, it might be the few points that matter to the story.

Avoid labelling every point when the labels would overlap or hide the data. Make the other values available another way where appropriate, such as in a tooltip or a table.

Do
Show only the latest value and a notable low.
Don't
Don’t display a value beside every data point.

On a scatter or bubble chart, label only the few points people need to identify.

Do
Label a small number of notable points.
Don't
Don’t label every point.

Show slice values when exact proportions matter

Pie and donut charts make exact values difficult to estimate from the size of a slice. Show values for slices when the exact proportion matters and the values can be placed clearly, either inside the slice or next to its label.

Do
Show each share with its category.
Don't
Don’t leave out values when people need precise proportions.

Show the total when it adds useful context

For part-to-whole charts, show the total when knowing the overall amount helps people interpret the individual parts. Don’t show a total that only repeats what the chart already makes clear, such as 100% for a complete whole.

A useful total can appear at the end of a stacked bar or in the centre of a donut.

Do
Show the total when it adds useful context.
Don't
Don’t show 100% in the centre.

Where to place values

A quick summary of the rules above, by chart type. Where there isn’t room for a value, leave it out (see Show values only when they remain readable).

ChartWhere to place values
BarInside the bar or at its end.
Stacked barInside segments with enough room. Show the total at the end of the bar when it adds useful context.
LineAvoid showing a value at every point. Consider showing the latest or notable values and making other values available through interaction.
Donut or pieInside or beside slices where there is enough room. A useful total can appear in the centre of a donut.
ScatterAvoid labelling every point. Label notable points where useful and provide other values through interaction.
BubbleShow values or labels when there are few bubbles and they remain readable. Otherwise provide them through interaction.

See also