Excel course · Lesson 13 of 34

Charts: choosing the right chart, combo charts and sparklines

Pick the right chart for the message, build and format column, line, bar, pie and combo charts with a secondary axis, and add sparklines.

Intermediate 18 min read

A chart is an argument made with pictures. Before choosing a chart type, decide what the reader should see in three seconds: that sales are growing, that one region is far ahead, or that costs are eating the margin. The right chart makes that message obvious; the wrong one hides it. This lesson covers how to choose, how to build and format the common chart types, combo charts with two axes, and sparklines, the tiny charts that live inside cells.

Which chart for which message

MessageBest chartAvoid
Compare categories (sales by region)Clustered column, or bar if labels are longPie with many slices
Trend over time (monthly revenue)Line, or column for few periodsBar (time should run left to right)
Part of a whole (share of budget)Pie or doughnut with ≤ 5 slices; stacked bar3-D pie
Composition over timeStacked column or stacked areaMany separate pies
Relationship between two measuresScatter (XY)Line chart with unsorted X values
Distribution (exam scores)Histogram, box & whiskerColumn chart of raw values
Contributions to a change (profit bridge)WaterfallStacked column with hidden series
Two measures on different scalesCombo with secondary axisTwo unrelated charts side by side
Tip. If you cannot decide, use a column chart for categories and a line chart for time. They are read correctly by almost everyone. Histogram, box & whisker, waterfall, funnel, treemap and sunburst were added in Excel 2016; map charts need Microsoft 365 or Excel 2019 and later.

Building a chart in four steps

ABC
1MonthRevenueMargin %
2Jan420000.31
3Feb455000.29
4Mar512000.33
5Apr489000.3
6May563000.34
7Jun601000.35

Six months of revenue and gross margin (column C formatted as %).

  1. Select the data including headers, A1:B7. Excel uses the first column as category labels and the header as the series name.
  2. Choose Insert › Charts › Insert Column or Bar Chart › Clustered Column. Or press Alt+F1 (Windows) to insert the default chart on the sheet, or F11 to put it on its own chart sheet.
  3. Use Insert › Recommended Charts if you are unsure; Excel previews suitable types for your data.
  4. Drag the chart to position it, and drag a corner handle to resize. Hold Alt while dragging to snap the chart to the cell grid.

Chart elements and formatting

Click the chart and three buttons appear at its top-right corner on Windows: Chart Elements (+), Chart Styles (brush) and Chart Filters (funnel). On Mac use Chart Design › Add Chart Element.

  • Chart title: click it and type, or link it to a cell: select the title, type = in the formula bar, click a cell, press Enter. The title then updates with the cell.
  • Axis titles: add when the unit is not obvious ("EUR thousands").
  • Data labels: show values on the bars. Useful for few bars; clutter for many.
  • Legend: delete it when there is only one series; the title explains it.
  • Gridlines: keep them light grey or remove them.
  • Double-click any element (or select it and press Ctrl+1) to open the Format pane with all its options, such as gap width for columns or the axis minimum.
Watch out. A column chart whose vertical axis does not start at zero exaggerates differences. Excel sometimes picks a non-zero minimum automatically. For column and bar charts, check Format Axis › Bounds › Minimum is 0. Line charts may use a non-zero axis when the variation is the point.

Changing data and type

  • Chart Design › Data › Select Data adds, removes or reorders series and changes the category labels.
  • Chart Design › Data › Switch Row/Column swaps what is on the axis and what is in the legend.
  • Chart Design › Type › Change Chart Type switches type without rebuilding.
  • If the source data is an Excel table, new rows appear in the chart automatically (Excel tables and structured references).

Combo charts and the secondary axis

Revenue is in tens of thousands and margin is a percentage around 30%. On the same axis the margin line would be flat along the bottom. A combo chart draws revenue as columns on the left axis and margin as a line on a right-hand secondary axis.

  1. Select A1:C7.
  2. Choose Insert › Charts › Insert Combo Chart › Create Custom Combo Chart (in Excel 2016+ the combo icon is in the Charts group).
  3. For Revenue choose Clustered Column. For Margin % choose Line with Markers and tick Secondary Axis.
  4. Click OK. Format the secondary axis (double-click it) with Number › Percentage, 0 decimals, and set its bounds, for example 0% to 40%.
  5. Add axis titles so readers know which axis belongs to which series.

The chart now shows revenue rising from 42,000 to 60,100 while the margin moves between 29% and 35%. Total revenue over the half-year is 304,000.

Tip. Secondary axes can mislead because the two scales are independent. Label both axes clearly and avoid them when both series share a unit; in that case a simple line chart with two lines is better.

Sparklines: charts inside cells

ABCDEF
1RepJanFebMarAprTrend
2Anna18211925
3Bruno22201715
4Chen14161821

Monthly deals per rep. Column F will hold sparklines.

  1. Select F2:F4, where the sparklines will go.
  2. Choose Insert › Sparklines › Line (or Column, or Win/Loss).
  3. In Data Range enter B2:E4 and click OK.
  4. On the Sparkline tab tick High Point and Low Point to mark the best and worst month, and choose a colour.
  5. Bruno's sparkline slopes down, Anna's zig-zags upward, Chen's climbs steadily: visible at a glance.

Sparklines in a group share settings. By default each sparkline has its own vertical scale, which makes a small rise look as steep as a big one. Use Sparkline › Group › Axis › Same for All Sparklines (both minimum and maximum) to compare reps fairly. Sparklines are available since Excel 2010 on Windows and Excel 2011 on Mac.

Templates and copying formats

  • Right-click a finished chart and choose Save as Template (Windows) to reuse your formatting; use it under Insert › Recommended Charts › All Charts › Templates.
  • To copy formatting from one chart to another, copy the first chart, select the second, and use Home › Paste › Paste Special › Formats.
  • Hidden rows and empty cells: by default charts skip hidden data. Change this in Select Data › Hidden and Empty Cells.

Design principles that work

  • One message per chart, stated in the title: "Revenue up 43% since January" beats "Revenue".
  • Sort bars by value unless the categories have a natural order (months, age groups).
  • Use one highlight colour for the point you want noticed and grey for the rest.
  • Remove 3-D effects, shadows and heavy borders. They add ink but no information.
  • Label lines directly at their end instead of using a distant legend when there are only a few series.
Note. The Recommended Charts, combo chart builder and new chart types work in Excel 2016 and later on Windows and Mac. In Excel for the web you can create and format most chart types, though some advanced formatting options are only in the desktop app.

Check yourself

1. Which chart best shows monthly revenue over two years?

2. Revenue is in thousands and margin in percent. How do you show both in one chart?

3. Why set sparkline axes to 'Same for All Sparklines'?

4. What is the risk of a column chart whose axis starts at 40,000 instead of 0?

5. How do you make a chart title update from a cell?