Sub topic 2
Controlling the data range, headers, and series
This chapter assumes you can select cell ranges, enter data, use SUM, and insert a chart in Google Sheets. You should already have a chart, or be able to insert one from a table.
Setting the data range and headers
Open the chart editor and select the Setup tab. The data range is the block of cells that Sheets reads for the chart. You can type a new range there, such as A1:D13.
Two checkboxes control how Sheets reads the labels:
- Use row 1 as headers treats the first row as series names.
- Use column A as labels treats the first column as category names, such as months.
If a series appears in a row instead of a column, click Switch rows/columns.
Adding and removing series
Under Series in Setup, click Add series to plot another column or row. Click the trash icon beside a series to remove it. Every series must cover the same number of cells as the labels.
Titles and chart style
Open the Customize tab and expand Chart style. Type a chart title and choose its font and size. Then expand Chart and axis titles to name the horizontal and vertical axes. Include units in the axis name, such as "Revenue (USD)".
Series colours and data labels
Expand Series in Customize to change a series colour. Choose colours with strong contrast, and do not rely on red and green alone to tell series apart. Turn on Data labels to print values on the chart, and pick a position such as Outside end.
Axes, gridlines, and scale
Expand Vertical axis to set the minimum and maximum values. Bar charts should start at zero, because a higher starting value makes small differences look large. Use Gridlines to show or hide the grid lines. For values that span several powers of ten, use a log scale.
Positioning the legend
Expand Legend and choose a position: None, Top, Bottom, Left, or Right. Hide the legend when data labels already name each series.
Exercise
A column chart of monthly sales plots the first row as a series named "Jan" and shows an extra bar set. What should you change in Setup?
Show answer
Check "Use row 1 as headers" so Sheets treats the first row as labels, not as data.