Sub topic 8
Working with axes, gridlines, and scale
This chapter assumes you can insert a chart and open the chart editor, and that you know how the Setup and Customize tabs are organised. It covers the horizontal and vertical axes, gridlines, and scale settings. These settings decide whether a chart tells the truth about your data or distorts it.
What axes do
Most Google Sheets charts have two axes:
- The horizontal axis (X-axis) usually shows categories, such as months or product names, or a continuous scale such as dates.
- The vertical axis (Y-axis) usually shows the numeric values, such as sales or counts.
Bar charts swap the roles. Categories run down the vertical axis and values run across the horizontal axis. Pie charts have no axes. Scatter charts use numbers on both axes.
You change axis settings in Customize, in the Horizontal axis and Vertical axis sections. Each section is collapsed by default, so expand it before looking for an option.
Horizontal axis options
The horizontal axis section controls how category labels look and how they are read.
- Font, font size, format, and text colour. Use these to make labels readable. Bold or italic styles are available under Format.
- Slant labels. Choose automatic, or set a fixed angle. Slanting helps when long labels would overlap.
- Reverse axis order. This flips the order of categories. It is useful when the data runs newest to oldest and you want time to read left to right.
- Treat labels as text. This option appears when Sheets has detected dates or numbers in your labels. It forces them to be treated as plain categories.
Text axis versus continuous axis
The "treat labels as text" option matters more than it looks. Suppose the first column contains dates that are not evenly spaced: 1 Jan, 2 Jan, 15 Jan, and 1 Feb.
- With a continuous (date) axis, Sheets spaces the points according to the real time gap. The jump from 2 Jan to 15 Jan looks wide.
- With a text axis, Sheets spaces the points equally, one slot per row. The gap disappears and the line looks smoother than the real trend.
Use the continuous axis for trends over time. Use the text axis when each row is a separate category, such as quarter names or survey wave numbers, where equal spacing is the right picture.
The choice also changes the chart type Sheets offers. A line chart with a date axis can show gaps in time. A column chart with a text axis never will.
Vertical axis options
The vertical axis section has the same text options, plus settings that control scale.
| Option | What it does | When to use it |
|---|---|---|
| Min | Sets the lowest value shown | Zoom in on a range, or force the axis to start at 0 |
| Max | Sets the highest value shown | Leave room above the top bar, or match another chart |
| Scale factor | Divides displayed numbers, for example by 1,000 | Shorten large labels |
| Number format | Applies a format such as currency or percent | Make units clear |
| Log scale | Uses powers of ten instead of equal steps | Data spanning several orders of magnitude |
| Invert axis | Flips the direction of the axis | Rankings where 1 should be at the top |
Leave Min and Max blank to let Sheets choose. Type a number only when you have a reason to override the automatic range.
Scale and honest charts
Scale is where most misleading charts come from. Two rules cover most cases.
- Bar and column charts should start at zero. The length of a bar represents the value. If the axis starts at 50, a bar of 60 looks six times longer than a bar of 51, when the real ratio is about 1.2.
- Line charts may start above zero. A line shows change, not length. Zooming in is acceptable if the axis labels make the range clear.
The two charts below use the same data. The first is built with Min set to 90 and the second with Min set to 0. The first exaggerates a small change.
Month Uptime %
Jan 97.1
Feb 97.4
Mar 97.9
Apr 98.2With Min = 97 and Max = 98.5, the line climbs steeply. With Min = 0 and Max = 100, it looks almost flat. Neither is wrong for a line chart, but you should pick the one that matches the message and state the axis range in the title or a note when you zoom in.
Log scale
A log scale is useful when values differ by factors of ten, for example website visits per page where one page has 50 visits and another has 500,000. On a linear axis the small values vanish. On a log axis each gridline is ten times the previous one.
Two limits apply:
- Log scale cannot show zero or negative values. Rows with those values are dropped or cause errors.
- Readers who are not used to log axes often misread them. Label the axis "log scale" in its title.
Scale factor
Scale factor divides every label on the axis. A factor of 1,000 turns 250,000 into 250. It changes only the labels, not the data. Add the unit to the axis title, for example "Revenue (thousands of USD)", or readers will read 250 as 250 dollars.
Gridlines and ticks
Gridlines are the faint lines that run across the plot area to help the eye trace a value back to the axis. In each axis section, expand Gridlines and ticks.
- Major gridlines appear at each labelled step. You can set their colour, the count, and the spacing.
- Minor gridlines appear between the major ones. They add precision but also clutter.
- Major and minor ticks are the small marks on the axis itself. You can set their position (inside or outside the plot) and their length.
Use Major gridline count to control how many labelled steps appear. Setting it to 5 on a 0 to 100 axis gives steps of 20. Setting the count to Auto returns control to Sheets.
A practical approach is to keep faint major gridlines on the value axis only and remove them on the category axis. Heavy gridlines on both axes compete with the data. Light grey, such as #e0e0e0, works well.
Dual-axis scale
When a combo chart plots two series on different axes, each axis has its own Min, Max, and format. Matching the scales carefully matters, because two independent axes can make unrelated lines appear to move together. Chapter content on combo charts covers this in detail. For now, remember that the Vertical axis section has a Right axis entry once a series is assigned to the right axis, and that you set its scale there.
A worked example
Suppose you have monthly sales for 12 months in A1:B13, with the header row in row 1. You want a column chart where the labels read in thousands and the axis starts at zero.
- Select A1:B13 and choose Insert > Chart. Pick Column chart under Chart type if Sheets chose something else.
- Open Customize > Vertical axis.
- Set Min to
0. Leave Max blank. - Set Scale factor to
1000. - Under Number format, choose a currency format.
- Open Gridlines and ticks and set the major gridline colour to light grey.
- Open Chart & axis titles, choose Vertical axis title, and enter
Sales (thousands of USD).
The result reads cleanly, starts at zero, and states its units.
Common problems
- Axis labels overlap. Slant them, reduce the font size, widen the chart, or switch to a horizontal bar chart so long labels sit on the vertical axis.
- Dates appear as serial numbers such as 45231. The cells hold numbers, not dates. Format the source cells as dates, then refresh the chart.
- The axis ignores your Max. If a value in the data exceeds your Max, the chart is clipped. Raise the Max or remove it.
- Min cannot be set on a stacked percentage chart. Those charts are fixed at 0 to 100 percent.
- Gridlines vanish after you change chart type. Some types, such as pie, have none. Switching back can reset them, so reapply your settings.
Exercise
A column chart shows monthly revenue between 48,000 and 52,000. Sheets chose an automatic axis from 46,000 to 53,000, and the bars look wildly different in height. What should you change, and why? Also, what should you add so readers do not misread labels if you apply a scale factor of 1,000?
Show answer
Set the vertical axis Min to 0 in Customize > Vertical axis. Bar length represents the value, so starting at 46,000 exaggerates a difference of about 8 percent. With Min at 0, the bars look nearly equal, which matches the data. If you apply a scale factor of 1,000, add the unit to the vertical axis title, for example "Revenue (thousands of USD)", because the scale factor changes only the labels.
Exercise
Your data has dates 1 Jan, 2 Jan, 15 Jan, and 1 Feb, and the line chart shows evenly spaced points. Which axis setting is likely responsible, and how do you fix it if you want real time gaps?
Show answer
The horizontal axis is being treated as text. Open Customize > Horizontal axis and turn off "Treat labels as text" so Sheets uses a continuous date axis. Also confirm that the source cells are formatted as dates, not text.