Axes and grid
Anatomy
- Axis title
Identifies what the axis measures and, where needed, its unit. - Grid line
Helps relate data to a position on the value scale. - Axis line
Marks the axis. - Value tick label
Shows a value on the scale. - 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.
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.
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.
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.