Chapter 6: Chart Details
Learning Objectives
- Create a chart quickly and move it to its own chart sheet.
- Add a data series to a chart, edit its source data, and switch rows and columns.
- Add, remove and format chart elements such as titles, data labels, the legend, axes and gridlines.
- Apply chart layouts, styles and color sets.
- 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:
- Alt+F1 inserts a chart of the default type (a clustered column chart) on the current sheet.
- F11 inserts a chart of the default type on a new chart sheet.
When a chart is selected, two tabs appear: Chart Design and Format. Three buttons also appear beside the chart:
- Chart Elements (+) turns elements on and off.
- Chart Styles (the paintbrush) applies styles and colors.
- Chart Filters (the funnel) hides or shows series and categories without changing the data.
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:
- An embedded chart floats on a worksheet beside the data.
- A chart sheet is a sheet that holds only the chart, filling the window. Chart sheets have their own tab, like a worksheet.
To move a chart, select it and choose Chart Design › Move Chart:
- New sheet moves the chart to a new chart sheet. Type the sheet's name in the box, such as Sales Chart.
- Object in moves the chart back onto a worksheet. Choose the sheet from the list.
"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:
- A data series is one set of related values, drawn as one color of bars, one line or one set of slices. Series names appear in the legend.
- Categories are the labels along the horizontal axis (or the slices of a pie).
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:
- Chart data range at the top is the whole source range. Select a new range to replace the chart's data.
- Legend Entries (Series) on the left lists each series. Use Add, Edit and Remove, and the arrows to change the order series are drawn in.
- Horizontal (Category) Axis Labels on the right lists the categories. Click Edit to choose a different range of labels.
- Hidden and Empty Cells decides how the chart shows empty cells (as gaps, as zero, or by connecting the line) and whether data in hidden rows and columns is plotted.
6.3.3 Adding a data series
There are three ways to add a series:
- 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. - Drag the outline. Drag the corner of the values outline on the worksheet to include the new row or column.
- 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:
- Chart Design › Add Chart Element, which lists every element with placement choices, such as Legend › Bottom or Data Labels › Outside End.
- Chart Elements (+) beside the chart. Check or uncheck an element, and point at it and click its arrow for placement choices.
To remove an element, uncheck it, or click it in the chart and press Delete.
6.4.2 Modifying elements
- Edit text in a title by clicking it and typing. To link a title to a cell, click the title, type
=in the formula bar, click the cell and press Enter. - Format any element by double-clicking it, or by selecting it and pressing Ctrl+1. The Format pane opens with that element's fill, border, effects, size and options. For an axis, that includes the minimum and maximum, units and number format. For data labels, it includes what the labels show and where they sit.
- Select hard-to-click elements with the Current Selection list at the left of the Format tab. Choose the element, then Format Selection.
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:
- Right-click the chart's border (the chart area) and choose View Alt Text (or Edit Alt Text), or choose Format › Alt Text.
- In the Alt Text pane, type a description in the box.
- 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:
- Weak: "Chart 1."
- Better: "Column chart of sales by region."
- Best: "Column chart of 2027 sales by region. The West region leads with $1.2 million; the South is lowest at $640,000."
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.
- Add the Q4 data to the chart as a new series. Expected result: the chart has four series, Q1–Q4; Q4 series values = Visits!$EEE$1. Objective: Add data series to charts.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.