Sub topic 3
Combining Chart Types with a Secondary Axis
This chapter assumes you can insert a basic chart, select a range of cells, and use the chart editor's Setup and Customize tabs.
Combining chart types with a secondary axis
A combo chart shows two series with different scales or shapes on one chart. For example, revenue in dollars on the left axis and conversion rate in percent on the right axis. Open the chart editor, go to Setup, and set the chart type to Combo chart. Then, in Customize, expand Series, choose the series, and set its Axis to Right axis.
Sharing, downloading, and publishing
Open the chart's three-dot menu to download it as PNG, SVG, or PDF, or to copy it into Docs or Slides. To publish it, choose Publish chart from the same menu. Google Sheets then gives you an embed code and a link.
Trendlines and error bars
In Customize, open Series, then tick Trendline. Choose a type such as Linear, Exponential, or Moving average. A trendline shows the direction of a series. Error bars show uncertainty around each value.
Sparklines in cells
A sparkline is a tiny chart inside one cell. Use the SPARKLINE function:
=SPARKLINE(B2:M2, {"charttype", "column"; "color", "#1a73e8"})Charting a pivot table
Select any cell in the pivot table, then choose Insert > Chart. The chart reads the pivot's rows and columns, so it updates when you change the pivot.
Readable and accessible design
Use a title that states the finding. Choose colours with strong contrast against the background, and do not rely on colour alone to tell series apart.
Charts that follow filtered or formula data
Charts built from FILTER or QUERY output update when the source data changes. Check that the chart range points at the formula's output cells, not the raw data.
Fixing common problems
- If the first row becomes a data row, untick "Use row 1 as headers" in Setup.
- If rows and columns are swapped, click Switch rows/columns in Setup.
flowchart TD
A[Source data] --> B[Insert chart]
B --> C[Setup: type and range]
C --> D[Customize: series, axes, titles]
D --> E[Share, download, or publish]caption: How a chart moves from source data to a shared chart. alt: A flowchart with five steps. Source data leads to inserting a chart, then to setting the type and range in Setup, then to customising series, axes, and titles, and finally to sharing, downloading, or publishing.
Exercise
Exercise
A series of monthly conversion rates is about 2 percent, while revenue is in the tens of thousands. Which setting keeps both series readable on one chart?
Show answer
Set the conversion rate series to Right axis in Customize > Series so it uses its own scale.