Sub topic 10
Combining chart types with a secondary axis
A combo chart draws some series as columns and others as lines in the same plot area. Use one when your series measure different things, such as revenue in dollars and profit margin as a percentage. This chapter assumes you can insert a chart, open the chart editor, and edit the data range and series. It covers building a combo chart, adding a secondary axis, and the errors that come up most often.
When a combo chart is the right choice
A single chart type works when all series share a unit and a similar size. Two situations call for a combo chart:
- Different units. Units sold (hundreds) and average price (dollars) cannot share one axis without one of them flattening.
- Different roles. Actual values are best shown as columns, and a target or average as a line across them.
A combo chart is not a way to fit more data on one chart. Two series is usually the practical limit. With three or more, the reader has to work out which series belongs to which axis.
Sample data
The examples use monthly revenue and profit margin. Put this in A1:C7, with headers in row 1:
| Month | Revenue | Margin |
|---|---|---|
| Jan | 42000 | 0.18 |
| Feb | 45500 | 0.21 |
| Mar | 51000 | 0.19 |
| Apr | 48200 | 0.24 |
| May | 56700 | 0.26 |
| Jun | 61300 | 0.25 |
Format C2:C7 as a percentage before charting. The axis labels follow the number format of the source cells, so a column of 0.18 will show as 0.18 and not as 18%.
Building a combo chart
- Select
A1:C7and choose Insert > Chart. - In the chart editor, open the Setup tab.
- Set Chart type to Combo chart. Sheets uses column bars for the first series and a line for the rest.
- Check that Use row 1 as headers and Use column A as labels are ticked.
With the default combo, Revenue is drawn as columns and Margin as a line. Because Margin is between 0 and 1 and Revenue is in the tens of thousands, the line sits flat along the bottom of the plot. The next section fixes that.
Adding a secondary axis
A secondary axis is a second vertical scale, drawn on the right side of the chart, that a chosen series uses instead of the left one.
- Open the Customize tab and expand Series.
- Use the Apply to drop-down to select Margin.
- Set Axis to Right axis.
The line now uses its own scale and rises and falls across the plot. The left axis keeps the Revenue scale.
Next, set the type of each series. Still in Customize > Series, choose a series in Apply to and set its Format to Line, Area, or Column. Sheets lets you set this per series, so you can mix them freely.
Configuring both axes
Once two axes exist, each needs its own settings. In Customize, you will see separate sections for the Left axis and Right axis.
- Titles. Give each axis a title with its unit, for example "Revenue (USD)" and "Margin (%)". Without these, the reader cannot tell which series goes with which scale.
- Min and max. Set these on each axis. A right axis that starts at 0.15 instead of 0 makes small changes look large, so decide whether that is honest for your data.
- Number format. Set the right axis to a percent format if the labels still show decimals.
- Gridlines. Show major gridlines for only one axis. Two sets of gridlines at different spacing look cluttered and do not align.
If the axis scales are chosen so that gridlines from both sides line up, the chart is easier to read. For example, a left axis of 0 to 80000 and a right axis of 0 to 40% both divide into four even steps.
Matching colours to axes
The reader links a series to an axis by colour. Colour the right axis title and labels with the same colour as the series that uses it. In Customize > Right axis, set the Label font colour and Title font colour to match the series colour from Customize > Series. This small step removes most confusion in dual-axis charts.
How the combo chart is structured
The diagram below shows how each series connects to a format and an axis.
Other combinations
You can apply the same approach to other pairings:
| Pairing | Typical use |
|---|---|
| Column + line | Volume with a rate, or actuals with a target |
| Column + area | Totals with a shaded range or cumulative figure |
| Line + line, two axes | Two trends with different units, such as temperature and sales |
| Stacked column + line | Composition of a total with a separate average |
For a target line on the same unit, no secondary axis is needed. Add a column of the target value in each row, for example 50000 in every cell of column D, and set that series to Line on the left axis. The result is a flat line across the columns.
Common problems
- The combo option is missing the line. All series are columns. Open Customize > Series, choose the series, and set Format to Line.
- The line is flat. The series is on the same axis as a much larger series. Move it to the right axis.
- Right axis shows decimals. The source cells are not formatted as a percentage, or the axis number format is not set. Fix the source format first, then check the axis format.
- Axes mislead. A right axis that does not start at zero can exaggerate movement. If you truncate the axis, say so in the title or use a clear label.
- Categories appear as numbers. If column A holds numbers or dates, Sheets may treat it as a series. Make sure Use column A as labels is ticked, or format the column as text.
- Wrong series on the right. The Apply to selection decides which series you are changing. Check it before changing Axis.
Exercises
Exercise
A chart has Units Sold (values around 200) as columns and Average Price (values around 4.50) as a line. The line appears flat at the bottom of the chart. What do you change, and where in the chart editor?
Show answer
Open Customize > Series, choose Average Price in the Apply to drop-down, and set Axis to Right axis. The line then uses its own scale, so its movement is visible. Add axis titles with units for both the left and right axes.
Exercise
You want a flat line at 50000 across a column chart of monthly revenue, to show a target. Do you need a secondary axis? Describe how to add it.
Show answer
No. The target uses the same unit as revenue, so both can share the left axis. Add a column with 50000 in every row, include it in the data range, and set that series to Format: Line under Customize > Series. Leave its axis on Left axis.
Exercise
Your Margin series is on the right axis, but the labels show 0.18, 0.21 and so on instead of percentages. Name two places to fix this.
Show answer
Format the source cells as a percentage (Format > Number > Percent), because axis labels follow the source format. Alternatively, set the number format of the right axis in Customize > Right axis.