Axes and grid

Axes provide the scales and reference points that help people read and compare values. Use them to make the scale clear without adding unnecessary detail.

Anatomy

  1. Axis title
    Identifies what the axis measures and, where needed, its unit.
  2. Grid line
    Helps relate data to a position on the value scale.
  3. Axis line
    Marks the axis.
  4. Value tick label
    Shows a value on the scale.
  5. Category or time tick label
    Identifies a category or point in time.

Start bar and area charts at zero

When length or area represents a value, start the value axis at zero. A cropped scale changes the apparent difference between values and can make small differences look much larger.

If comparing relatively small changes in values far from zero is important, consider a chart where position rather than length represents the value, such as a line chart.

Do
Start the value axis at zero.
Don't
Don’t crop the axis so small differences look large.

Use a scale that represents the data clearly

For charts where values are represented by position, such as line and scatter charts, the value axis does not always need to start at zero. Choose a range that makes meaningful differences visible without exaggerating them.

Add context, in the subtitle or a note, when the chosen range could otherwise give a misleading impression of the data.

Make axis text easy to read

Keep category and time tick labels horizontal wherever possible. If category labels are long, see Categories under Labels and legends.

Use an axis title when the measure or unit is not already clear from the chart or surrounding content. Put the unit once, in the axis title or the chart subtitle, rather than repeating it on every tick label or category name.

Place the title of a vertical value axis vertically, centred beside the axis, rather than horizontally above it. It stays next to the scale it describes and doesn’t add a line of height above the chart.

Do
Place the value axis title vertically, beside the axis.
Don't
Don’t place the value axis title horizontally above the axis.

Choose intervals that support comparison

Show enough tick values to make the scale understandable without making the axis crowded.

For time axes, choose intervals that support the period being compared. Avoid intervals that hide meaningful variation or add detail that does not help interpretation.

Use light gridlines only when they help

Only add gridlines when they help people read the data. Keep it simple to avoid adding extra noise to your charts.

Gridlines help people estimate values that aren’t labelled on the chart. Leave them out when values can already be read easily without them, for example when the values are printed on the chart, or when the chart is small and shows only a few values.

Our visual style is light, neutral horizontal gridlines only, lined up with the value ticks, with no vertical gridlines. The exception is bubble charts, which show vertical gridlines as well, because both axes carry values. This is a style we have adopted, not a requirement.

Do
Use light gridlines that line up with the ticks.
Don't
Don’t use dark or heavy gridlines.

Gridlines belong to the scale. For meaningful reference values such as targets, averages or thresholds, use reference lines instead. See Annotations.

Use a single value axis by default

Use one value axis when series share the same measure and can be meaningfully compared on the same scale.

Avoid adding a second value axis simply to fit different measures into one chart. When measures use different units or substantially different scales, separate charts are usually easier to interpret.

If two value axes are necessary, make it clear which scale belongs to each series.

See also