Chart Details

Chapter 6: Chart Details

Learning Objectives

  1. Create a chart quickly and move it to its own chart sheet.
  2. Add a data series to a chart, edit its source data, and switch rows and columns.
  3. Add, remove and format chart elements such as titles, data labels, the legend, axes and gridlines.
  4. Apply chart layouts, styles and color sets.
  5. Add alternative text to a chart for accessibility.

Lesson 6 of Introduction to Excel taught you how to choose a chart type and build a chart from your data. This chapter covers the rest of MO-210's chart objectives: putting a chart on its own sheet, changing the data a chart shows, working with every chart element, applying layouts and styles, and making a chart accessible. Chapter 13 covers the advanced chart types on MO-211.

6.1 Creating charts quickly

As a reminder, select the data (including its labels) and choose a chart from the Insert tab, or choose Insert › Recommended Charts to see Excel's suggestions. Two shortcuts are handy on a timed exam:

When a chart is selected, two tabs appear: Chart Design and Format. Three buttons also appear beside the chart:

To change the type of an existing chart, choose Chart Design › Change Chart Type.

6.2 Chart sheets

A chart can live in one of two places:

To move a chart, select it and choose Chart Design › Move Chart:

"Move the chart to a new sheet named Trend" and "Display the chart on its own sheet" both mean Move Chart › New sheet. If the task gives a name, type it in the Move Chart dialog box. Renaming the sheet afterward works too, but takes longer.

6.3 Changing chart data

6.3.1 How a chart reads its data

A chart turns a range into series and categories:

When you select a chart, Excel outlines its source data on the worksheet: series names in one color, category labels in another and values in a third. Drag the corners of these outlines to add or remove rows and columns from the chart.

6.3.2 The Select Data dialog box

Chart Design › Select Data shows and changes everything the chart is built from:

6.3.3 Adding a data series

There are three ways to add a series:

  1. Select Data › Add. In Edit Series, set Series name to the cell with the series label, and Series values to the range of numbers. Clear the ={1} placeholder before you select the values.
  2. Drag the outline. Drag the corner of the values outline on the worksheet to include the new row or column.
  3. Copy and paste. Copy the new data, including its label, select the chart and paste (Ctrl+V).

In the Edit Series dialog box, select cells with the mouse rather than typing. Excel writes absolute references with the sheet name, such as =Sales!$E$2:$E$7. A typed reference without the sheet name gives an error.

6.3.4 Switching rows and columns

Excel decides on its own whether the rows or the columns of your data become the series, usually making the longer dimension the categories. Chart Design › Switch Row/Column swaps them. For a table of regions (rows) by quarters (columns), one view groups the bars by region with a bar for each quarter, and the switched view groups them by quarter with a bar for each region.

The Switch Row/Column button is also in the Select Data dialog box.

"Display the quarters on the horizontal axis" or "show one series for each region" describe the result of Switch Row/Column. Look at the chart's axis and legend before and after switching, and check that they match what the task asks for.

6.4 Chart elements

Chart elements are the parts of a chart beyond the bars or lines themselves:

Element What it shows
Chart Title The title above the chart, or overlaid on it
Axis Titles Labels for the horizontal and vertical axes
Axes The axes themselves and their labels
Data Labels Values (or names or percentages) on each bar, point or slice
Data Table A table of the source data under the chart
Error Bars Ranges of uncertainty on each point
Gridlines Major and minor lines behind the plot area
Legend The key to the series, at the right, top, left or bottom
Lines Drop lines and high-low lines (line charts only)
Trendline A fitted line showing the trend of a series
Up/Down Bars Bars between two line series (line charts only)

6.4.1 Adding and removing elements

Use either:

To remove an element, uncheck it, or click it in the chart and press Delete.

6.4.2 Modifying elements

Data labels can show more than the value. In the Format Data Labels pane, under Label Options, you can show the Series Name, Category Name, Value, Percentage (pie charts) or a Value From Cells range, and choose the separator between them.

6.5 Layouts and styles

6.5.1 Quick Layout

A layout is a preset arrangement of elements: which titles, labels, legend and gridlines appear, and where. Chart Design › Quick Layout offers about a dozen, named Layout 1, Layout 2 and so on. Point at one to preview it. The choices depend on the chart type.

A layout changes only which elements appear. It doesn't change colors or effects.

6.5.2 Chart styles and colors

A chart style sets the look: colors, effects, backgrounds and fonts. The Chart Styles gallery on the Chart Design tab names them Style 1, Style 2 and so on. Point at a thumbnail to see its name and preview it.

Change Colors, to the left of the gallery, applies a color set: Colorful palettes or Monochromatic shades of one color. The Chart Styles button (paintbrush) beside the chart has the same choices on its Style and Color tabs.

The Format tab works on one selected element at a time. Use its Shape Styles gallery, Shape Fill, Shape Outline and Shape Effects for a bar, the plot area or the chart area, and WordArt Styles for text. Its Size group sets an exact height and width.

Tasks name layouts and styles by number: "Apply Layout 5" or "Apply the Style 8 chart style." Point at a thumbnail to see its name in a tooltip before you click.

6.6 Alt text

Alternative text (alt text) describes a chart for people who can't see it. Screen readers read it aloud. The Accessibility Checker (chapter 3) reports any chart without alt text as an error.

To add alt text:

  1. Right-click the chart's border (the chart area) and choose View Alt Text (or Edit Alt Text), or choose Format › Alt Text.
  2. In the Alt Text pane, type a description in the box.
  3. Close the pane.

The pane also has Mark as decorative, for images that add nothing a reader needs. Don't use it for charts, because charts carry information.

6.6.1 Writing useful alt text

Good alt text says what kind of chart it is and what it shows, especially the main point:

Keep it to a sentence or two. For a complicated chart, summarize the trend and point readers to the source data.

When a task gives you the exact alt text, type it exactly, with the same capitalization and punctuation. Older versions of Excel had a separate Title box for alt text. In current Excel, put the text in the description box.

6.7 Practice

Simmy assessment goes here. Exam-style tasks on chart sheets, adding a data series, switching rows and columns, chart elements, layouts, styles and alt text. When a student misses a task, Simmy builds the AI prompt (the task as worded, what the student did, and the correct result).

Starting data. A workbook named Pinecrest Library Visits with one sheet, Visits (A1:E7):

Branch Q1 Q2 Q3 Q4
Central 18,250 19,400 22,150 20,300
Eastside 9,120 9,860 11,040 10,210
Hillview 6,480 7,150 8,320 7,690
Riverside 7,940 8,210 9,600 8,870
Westgate 5,330 5,710 6,890 6,120
Online Programs 3,210 3,640 4,480 4,950

A clustered column chart on Visits plots A1:D6 (Branch names as categories, Q1–Q3 as series; Q4 and Online Programs aren't plotted). It has no title and no alt text.

Tasks.

  1. Add the Q4 data to the chart as a new series. Expected result: the chart has four series, Q1–Q4; Q4 series values = Visits!$E2:2:E6,name=Visits!6, name = Visits!E$1. Objective: Add data series to charts.
  2. Add the Online Programs row to the chart so it appears as a category. Expected result: the chart data range covers A1:E7; six categories. Objective: Add data series to charts.
  3. Change the chart so that the quarters appear on the horizontal axis and each branch is a separate series. Expected result: rows and columns switched: categories Q1–Q4; six series, one per branch. Objective: Switch between rows and columns in source data.
  4. Apply Layout 3 and the Style 6 chart style to the chart. Expected result: Quick Layout 3; chart style 6. Objective: Apply chart layouts; Apply chart styles.
  5. Change the chart title to Visits by Quarter, FY27, and move the legend to the right side of the chart. Expected result: title text as given; legend position Right. Objective: Add and modify chart elements.
  6. Display the values above each column for the Central series only. Expected result: data labels on the Central series, Outside End; no labels on other series. Objective: Add and modify chart elements.
  7. Add the following description of the chart for people who use screen readers: "Column chart of library visits by quarter for six branches. Central has the most visits in every quarter." Expected result: chart alt text (description) matches exactly. Objective: Add alternative text to charts for accessibility.
  8. Move the chart to a new sheet named Visits Chart. Expected result: the chart is on a chart sheet named Visits Chart; not on Visits. Objective: Create chart sheets.