Chapter 19. Getting Started Making Charts

<feature><title>In This Chapter</title> </feature>

When most people think of Excel, they think of crunching rows and columns of numbers. But as you probably know already, Excel is no slouch when it comes to presenting data visually in the form of a chart. In fact, it’s a safe bet that Excel is the most commonly used software for creating charts.

This chapter presents an introductory overview of the Excel program’s charting ability.

What Is a Chart?

A chart is a visual representation of numeric values. Charts (also known as graphs) have been an integral part of spreadsheets since the early days of Lotus 1-2-3. Charts generated by early spreadsheet products were quite crude but have improved significantly over the years. Excel provides you with the tools to create a wide variety of highly customizable charts.

New Feature

Excel 2007 charting is a good news/bad news situation. The good news is that Excel 2007 charts have a great new look. The bad news is that Microsoft did not provide any new chart types or any significant new features.

Displaying data in a well-conceived chart can make your numbers more understandable. Because a chart presents a picture, charts are particularly useful for summarizing a series of numbers and their interrelationships. Making a chart can often help you spot trends and patterns that may otherwise go unnoticed.

Figure 19.1 shows a worksheet that contains a simple column chart that depicts a company’s sales volume by month. Viewing the chart makes it very apparent that sales were down in the summer months (June through August), but they increased steadily during the final four months of the year. You could, of course, arrive at this same conclusion simply by studying the numbers. But viewing the chart makes the point much more quickly.

A simple column chart depicts the monthly sales volume.

Figure 19.1. A simple column chart depicts the monthly sales volume.

A column chart is just one of many different types of charts that you can create with Excel.

Understanding How Excel Handles Charts

Before you can create a chart, you must have some numbers—sometimes known as data. The data, of course, is stored in the cells in a worksheet. Normally, the data that a chart uses resides in a single worksheet, but that’s not a strict requirement. A chart can use data that’s stored in any number of worksheets, and the worksheets can even be in different workbooks.

A chart is essentially an object that Excel creates upon request. This object consists of one or more data series, displayed graphically. The appearance of the data series depends on the selected chart type. For example, if you create a line chart that uses two data series, the chart contains two lines, each representing one data series. The data for each series is stored in a separate row or column. Each point on the line is determined by the value in a single cell and is represented by a marker. You can distinguish each of the lines by its thickness, line style, color, or data markers (squares, circles, and so on).

Figure 19.2 shows a line chart that plots two data series across a 12-month period. I used different data markers (squares versus circles) to identify the two series, as shown in the legend at the bottom of the chart. The chart clearly shows the sales in the Eastern Region are declining steadily, while Western Region sales are increasing at a slower rate.

This line chart displays two data series.

Figure 19.2. This line chart displays two data series.

A key point to keep in mind is that charts are dynamic. In other words, a chart series is linked to the data in your worksheet. If the data changes, the chart is updated automatically to reflect those changes.

After you’ve created a chart, you can always change its type, change the formatting, add new data series to it, or change an existing data series so that it uses data in a different range.

Before you create a chart, you need to determine whether you want it to be an embedded chart or one that resides on a chart sheet. However, you can change your mind later on because it’s very easy to move an embedded chart to a chart sheet (and vice versa).

Embedded charts

An embedded chart basically floats on top of a worksheet, on the worksheet’s draw layer. The charts shown previously in this chapter are both embedded charts.

As with other drawing objects (such as Shapes or SmartArt), you can move an embedded chart, resize it, change its proportions, adjust its borders, and perform other operations. Using embedded charts enables you to print the chart next to the data that it uses.

To make any changes to the actual chart in an embedded chart object, you must click it to activate the chart. When a chart is activated, Excel displays the Chart Tools context tab. The Ribbon provides many tools for working with charts.

Chart sheets

When you create a chart on a chart sheet, the chart occupies the entire sheet. If you plan to print a chart on a page by itself, using a chart sheet is often your better choice. If you have many charts to create, you may want to create each one on a separate chart sheet to avoid cluttering your worksheet. This technique also makes locating a particular chart easier because you can change the names of the chart sheets’ tabs to provide a description of the chart that it contains.

The Excel Ribbon changes when a chart sheet is active, similar to the way it changes when you select an embedded chart.

Excel displays a chart in a chart sheet in WYSIWYG (What You See Is What You Get) mode: The printed chart looks just like the image on the chart sheet. If the chart doesn’t fit in the window, you can use the scroll bars to scroll it or adjust the zoom factor. You also can change its orientation (tall or wide) by using Page Layout Chart sheets Page Setup Chart sheets Orientation.

If you create a chart on a chart sheet, you can easily convert it to an embedded chart. Choose Chart Tools Chart sheets Design Chart sheets Location Chart sheets Move Chart to display the Move Chart dialog box. Select the worksheet that will hold the embedded chart from the As Object In drop-down box. Excel deletes the chart sheet and moves the chart to the sheet that you specify. This operation also works in the opposite direction: You can select an embedded chart and relocate it to a new chart sheet.

Creating a Chart

Creating a chart is fairly simple:

  1. Make sure that your data is appropriate for a chart.

  2. Select the range that contains your data.

  3. Select a chart type by clicking a chart icon in the Insert Creating a Chart Charts. These icons display drop-down lists that display subtypes.

  4. (Optional) Use the commands in the Chart Tools context menu to change the look or layout of the chart or add or delete chart elements.

Tip

You can create a chart with a single keystroke. Select the range to be used in the chart and press F11. Excel inserts a new chart sheet and displays the chart of the selected data using the default chart type.

Hands On: Creating and Customizing a Chart

This section contains a step-by-step example of creating a chart and applying some customizations. If you’ve never created a chart, this is a good opportunity to get a feel for how it works.

Figure 19.3 shows a worksheet with a range of data. This data is customer survey results by month, broken down by customers in three age groups. In this case, the data resides in a table (created by choosing Insert Hands On: Creating and Customizing a Chart Tables Hands On: Creating and Customizing a Chart Table), but that’s not a requirement to create a chart.

The source data for the hands-on chart example.

Figure 19.3. The source data for the hands-on chart example.

On the CD-ROM

This workbook, named hands-on example.xlsx, is available on the companion CD-ROM.

Selecting the data

The first step is to select the data for the chart. Your selection should include such items as labels and series identifiers (row and column headings).

For this example, select the range B4:E10. This range includes the category labels but not the title (which is in B1).

Note

The data that you use in a chart need not be in contiguous cells. You can press Ctrl and make a multiple selection. The initial data, however, must be on a single worksheet. If you need to plot data that exists on more than one worksheet, you can add more series after the chart is created. In all cases, however, data for a single chart series must reside on one sheet.

Choosing a chart type

After you’ve selected the data, select a chart type from the Insert Choosing a chart type Charts. Each control in this group is a drop-down list, which lets you further refine your choice by selecting a subtype.

For this example, choose Insert Choosing a chart type Charts Choosing a chart type Column Choosing a chart type Clustered Column. In other words, you’re creating a column chart, using the clustered column subtype. Excel displays the chart shown in Figure 19.4.

A clustered columns chart.

Figure 19.4. A clustered columns chart.

Experimenting with different layouts

The chart shown in Figure 19.4 looks pretty good, but it’s just one of several predefined layouts for a clustered column chart.

To see some other configurations for the chart, select the chart and apply a few other layouts in the Chart Tools Experimenting with different layouts Design Experimenting with different layouts Chart Layoutsgroup.

Note

Every chart type has a set of layouts that you can choose from. A layout contains additional chart elements, such as a title, data labels, axes, and so on. You can add your own elements to your chart, but often using a predefined layout saves time. Even if the layout isn’t exactly what you want, it may be close enough that you need to make only a few adjustments.

Figure 19.5 shows the chart after selecting a layout that adds a chart title and moves the legend to the bottom.

The chart, after selecting a different layout.

Figure 19.5. The chart, after selecting a different layout.

The chart title is a text element that you can select and edit. Alternatively, you can link the chart title to a cell so the title always displays the contents of a particular cell. To create a link to a cell, click the chart title, type an equal sign (=), and click the cell. Excel displays the link in the Formula bar. In the example, the contents of cell A1 is perfect for the chart title.

Experiment with the Chart Tools The chart, after selecting a different layout. Layout tab to make other changes to the chart. For example, you can remove the grid lines, add axis titles, relocate the legend, and so on. Making these changes is easy and intuitive.

Trying another view of the data

The chart, at this point, shows six clusters (months) of three data points in each (age groups). Would the data be easier to understand if we plotted the information in the opposite way?

Try it. Select the chart and then choose Chart Tools Trying another view of the data Design Trying another view of the data Data Trying another view of the data Switch Row/Column. Figure 19.6 shows the result of this change. I also selected a different layout, which provides more separation between the three clusters.

The chart, after changing the row and column orientation.

Figure 19.6. The chart, after changing the row and column orientation.

Note

The orientation of the data has a drastic effect on the look of your chart. Excel has its own rules that it uses to determine the initial data orientation when you create a chart. If Excel’s orientation doesn’t match your expectation, it’s easy enough to change.

The chart, with this new orientation, reveals information that wasn’t so apparent in the original version. The <30 and 30-49 age groups both show a decline in satisfaction for March and April. The 50+ age group didn’t have this problem, however.

Trying other chart types

Although a clustered column chart seems to work well for this data, there’s no harm in checking out some other chart types. Choose Design Trying other chart types Type Trying other chart types Change Chart Type to experiment with other chart types. This command displays the Change Chart Type dialog box, shown in Figure 19.7. The main categories are listed on the left, and the subtypes are shown as icons. Select an icon, click OK, and Excel displays the chart using the new chart type. If you don’t like the result, select Undo.

Use this dialog box to change the chart type.

Figure 19.7. Use this dialog box to change the chart type.

Figure 19.8 shows a few different chart type options.

The customer satisfaction chart, using four different chart types.

Figure 19.8. The customer satisfaction chart, using four different chart types.

Trying other chart styles

If you’d like to try some of the prebuilt chart styles, select the chart and choose Chart Tools Trying other chart styles Design Trying other chart styles Chart Styles gallery. You’ll find an amazing selection of different colors and effects, all available with a single mouse click.

Tip

The styles displayed in the gallery depend on the workbook’s theme. When you choose Page Layout Tip Themes to apply a different theme, you’ll have a new selection of chart styles designed for the selected theme.

Figure 19.9 shows the chart after drastically changing its appearance by applying a new chart style, which adds a three-dimensional look to the columns.

A single click applies a new style and dramatically changes the chart’s look.

Figure 19.9. A single click applies a new style and dramatically changes the chart’s look.

Working with Charts

This section covers some common chart modifications:

  • Moving and resizing charts

  • Copying a chart

  • Deleting a chart

  • Adding chart elements

  • Moving and deleting chart elements

  • Formatting chart elements

  • Printing charts

Note

Before you can modify a chart, the chart must be activated. To activate an embedded chart, click it. Doing so activates the chart and also selects the element that you click. To activate a chart on a chart sheet, just click its sheet tab.

Moving and resizing a chart

If your chart is an embedded chart, you can freely move and resize it with you mouse. Click the chart’s border and then drag the border to move the chart. Drag any of the eight “handles” to resize the chart. The handles are the black dots that appear on the chart’s corners and edges when you click the chart’s border. When the mouse pointer turns into a double arrow, click and drag to resize the chart.

When a chart is selected, you can use the Format Moving and resizing a chart Size controls to adjust the height and width of the chart. Use the spinners, or type the dimensions directly into the Height and Width controls.

You also can use standard cut and paste techniques to move an embedded chart. In fact, this is the only way move a chart from one worksheet to another. Select the chart and choose Home Moving and resizing a chart Clipboard Moving and resizing a chart Cut (or press Ctrl+X). Then activate a cell near the desired location and choose Home Moving and resizing a chart Clipboard Moving and resizing a chart Paste (or press Ctrl+V). The new location can be in a different worksheet or even in a different workbook. If you paste the chart to a different workbook, it will be linked to the data in the original workbook.

To move an embedded chart to a chart sheet (or vice versa), select the chart and choose Chart Tools Moving and resizing a chart Location Moving and resizing a chart Move Chart to display the Move Chart dialog box.

Copying a chart

To make an exact copy of an embedded chart, press and hold down the Ctrl key. Click the chart and then drag the mouse pointer to a new location. To make a copy of a chart sheet, use the same procedure, but drag the chart sheet’s tab.

You also can use standard copy and paste techniques to copy a chart. Select the chart (an embedded chart or a chart sheet) and choose Home Copying a chart Clipboard Copying a chart Copy (or press Ctrl+C). Then activate a cell near the desired location and choose Home Copying a chart Clipboard Copying a chart Paste (or press Ctrl+V). The new location can be in a different worksheet or even in a different workbook. If you paste the chart to a different workbook, it will be linked to the data in the original workbook.

Deleting a chart

To delete an embedded chart, press Ctrl and click the chart (this selects the chart as an object). Then press Delete. When the Ctrl key is pressed, you can select multiple charts, and then delete them all with a single press of the Del key.

To delete a chart sheet, right-click its sheet tab and choose Delete from the shortcut menu. To delete multiple chart sheets, select them by pressing Ctrl while you click the sheet tabs.

Adding chart elements

To add new elements to a chart (such as a title, legend, data labels, or gridlines), use the controls in the Chart Tools Adding chart elements Layout group. These controls are arranged into logical groups, and they all display a drop-down list of options.

Moving and deleting chart elements

Some of the elements within a chart can be moved. The movable chart elements include the titles, the legend, and data labels. To move a chart element, simply click it to select it. Then drag its border. The easiest way to delete a chart element is to select it and then press Delete. You can also use the controls in the Chart Tools Moving and deleting chart elements Layout group to turn of the display of a particular chart element. For example, to delete data labels, choose Chart Tools Moving and deleting chart elements Layout Moving and deleting chart elements Labels Moving and deleting chart elements Data Labels Moving and deleting chart elements None.

A few chart elements consist of multiple objects. For example, the data labels element consists of one label for each data point. To more or delete one data label, click once to select the entire element and then click a second time to select the specific data label. You can then move or delete the single data label.

Formatting chart elements

Many users are content to stick with the predefined chart layouts and chart styles. For more precise customizations, Excel allows you to work with individual chart elements and apply additional formatting. You can use the Ribbon commands for some modifications, but the easiest way to format chart elements is to right-click the element and choose Format from the shortcut menu. The exact command depends on the element you select. For example, if you right-click the chart’s title, the shortcut menu command is Format Chart Title.

The Format command displays a stay-on-top tabbed dialog box with options for the selected element.

Figure 19.10 shows the Format Axis dialog box, which I displayed by right-clicking the vertical axis and selecting Format Axis from the shortcut menu.

Each chart element has a formatting dialog box. This one is used to format a chart axis.

Figure 19.10. Each chart element has a formatting dialog box. This one is used to format a chart axis.

Tip

If you’ve applied formatting to a chart element and decide that it wasn’t such a good idea, you can revert to the original formatting for the particular chart style. Right-click the chart element and choose Reset To Match Style from the shortcut menu. To reset the entire chart, select the chart area when you issue the command.

New Feature

In previous versions of Excel, double-clicking a chart element displayed its Format dialog box. That mouse action no longer works in Excel 2007.

Cross-Ref

Refer to Chapter 20 for more information about customizing and formatting charts.

Printing Charts

Printing embedded charts is nothing special; you print them the same way that you print a worksheet. As long as you include the embedded chart in the range that you want to print, Excel prints the chart as it appears on-screen. When printing a sheet that contains embedded charts, it’s a good idea to preview first (or use Page Layout View) to ensure that your charts do not span multiple pages. If you created the chart on a chart sheet, Excel always prints the chart on a page by itself.

Tip

If you select an embedded chart and use Office Tip Print, Excel prints the chart on a page by itself and does not print the worksheet.

If you don’t want a particular embedded chart to appear on your printout, select the chart and display the Size And Properties dialog box. Choose Chart Tools Tip Format, and then click the dialog box launcher in the Size group. In the Size And Properties dialog box, click the Properties tab and remove the check mark from the Print Object check box.

Understanding Chart Types

People who create charts usually do so to make a point or to communicate a specific message. Often, the message is explicitly stated in the chart’s title or in a text box within the chart. The chart itself provides visual support.

Choosing the correct chart type is often a key factor in the effectiveness of the message. Therefore, it’s often well worth your time to experiment with various chart types to determine which one conveys your message best.

In almost every case, the underlying message in a chart is some type of comparison. Examples of some general types of comparisons include

  • Compare item to other items: For example, a chart may compare sales in each of a company’s sales regions.

  • Compare data over time: For example, a chart may display sales by month and indicate trends over time.

  • Make relative comparisons: An example is a common pie chart that depicts relative values in terms of pie “slices.”

  • Compare data relationships: An XY chart is ideal for this comparison. For example, you might show the relationship between marketing expenditures and sales.

  • Frequency comparison: You can use a common histogram, for example, to display the number (or percentage) of students who scored within a particular grade range.

  • Identify “outliers” or unusual situations: If you have thousands of data points, creating a chart may help identify data that is not representative.

Choosing a chart type

A common question among Excel users is “How do I know which chart type to use for my data?” Unfortunately, this question has no cut-and-dried answer to. Perhaps the best answer is a vague one: Use the chart type that gets your message across in the simplest way.

Figure 19.11 shows the same set of data plotted by using six different chart types. Although all six charts represent the same information (monthly Web site visitors), they look quite different from one another.

The same data, plotted by using six chart types.

Figure 19.11. The same data, plotted by using six chart types.

On the CD-ROM

This workbook is available on the companion CD-ROM. The file is named six chart types.xlsx.

The column chart (upper left) is probably the best choice for this particular set of data because it clearly shows the information for each month in discrete units. The bar chart (upper right) is similar to a column chart, but the axes are swapped. Most people are more accustomed to seeing time-based information extend from left to right rather than from top to bottom.

The line chart (middle left) may not be the best choice because it seems to imply that the data is continuous—that points exist in between the 12 actual data points. This same argument may be made against using an area chart (middle right).

The pie chart (lower left) is simply too confusing and does nothing to convey the time-based nature of the data. Pie charts are most appropriate for a data series in which you want to emphasize proportions among a relatively small number of data points. If you have too many data points, a pie chart can be impossible to interpret.

The radar chart (lower right) is clearly inappropriate for this data. People aren’t accustomed to viewing time-based information in a circular direction!

Fortunately, changing a chart’s type is an easy procedure, so you can experiment with various chart types until you find the one that represents your data accurately, clearly, and as simply as possible.

The remainder of this chapter contains lots of information about Excel’s various chart types. The examples and discussion may give you a better handle on determining the most appropriate chart type for your data.

Chart type examples

After you select the data to use in a chart, the next step is to select the type of chart. The commands in the Insert Chart type examples Charts group are all drop-down controls. Click a control, and you see icons that represent the subtypes for the chart type. For example, a Line chart has seven subtypes.

The remainder of this section discusses each of Excel’s standard chart types and shows examples of each.

Column charts

Probably the most common chart type is column charts. A column chart displays each data point as a vertical column, the height of which corresponds to the value. The value scale is displayed on the vertical axis, which is usually on the left side of the chart. You can specify any number of data series, and the corresponding data points from each series can be stacked on top of each other. Typically, each data series is depicted in a different color or pattern.

Column charts are often used to compare discrete items, and they can depict the differences between items in a series or items across multiple series. Excel offers seven column-chart subtypes.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named column charts.xlsx.

Figure 19.12 shows an example of a clustered column chart that depicts monthly sales for two products. From this chart, it is clear that Sprocket sales have always exceeded Widget sales. In addition, Widget sales have been declining over the five-month period, whereas Sprocket sales are increasing.

This clustered column chart compares monthly sales for two products.

Figure 19.12. This clustered column chart compares monthly sales for two products.

The same data, in the form of a stacked column chart, is shown in Figure 19.13. This chart has the added advantage of depicting the combined sales over time. It shows that total sales have remained fairly steady each month, but the relative proportions of the two products have changed.

This stacked column chart displays sales by product and depicts the total sales.

Figure 19.13. This stacked column chart displays sales by product and depicts the total sales.

Figure 19.14 shows the same sales data plotted as a 100% stacked column chart. This chart type shows the relative contribution of each product by month. Notice that the vertical axis displays percentage values, not sales amounts. This chart provides no information about the actual sales volumes. This type of chart is often a good alternative to using several pie charts. Instead of using a pie to show the relative sales volume in each year, the chart uses a column for each year.

This 100% stacked column chart display monthly sales as a percentage.

Figure 19.14. This 100% stacked column chart display monthly sales as a percentage.

The data is plotted with a 3-D clustered column chart in Figure 19.15. The name is a bit deceptive, because the chart uses only two dimensions, not three. Many people use this type of chart because it has more visual pizzazz. Compare this chart with a “true” 3-D column chart, shown in Figure 19.16. This type of chart may be appealing visually, but precise comparisons are difficult because of the distorted perspective view.

A 3-D column chart.

Figure 19.15. A 3-D column chart.

A true 3-D column chart.

Figure 19.16. A true 3-D column chart.

You can also choose from column variations known as cylinder, cone, and pyramid charts. The only difference among these chart types and a standard column chart is the shape of the columns.

Bar charts

A bar chart is essentially a column chart that has been rotated 90 degrees clockwise. One distinct advantage to using a bar chart is that the category labels may be easier to read. Figure 19.17 shows a bar chart that displays a value for each of ten survey items. The category labels are lengthy, and displaying them legibly with a column chart would be difficult. Excel offers six bar chart subtypes.

If you have lengthy category labels, a bar chart may be a good choice.

Figure 19.17. If you have lengthy category labels, a bar chart may be a good choice.

On the CD-ROM

A workbook that contains the chart in this section is available on the companion CD-ROM. The file is named bar charts.xlsx.

Note

Unlike a column chart, no subtype displays multiple series along a third axis. (That is, Excel does not provide a 3-D Bar Chart subtype.)

As with a column chart, you can include any number of data series in a bar chart. In addition, the bars can be “stacked” from left to right.

Line charts

Line charts are often used to plot continuous data and are useful for identifying trends. For example, plotting daily sales as a line chart may enable you to identify sales fluctuations over time. Normally, the category axis for a line chart displays equal intervals. Excel supports seven line chart subtypes.

See Figure 19.18 for an example of a line chart that depicts daily sales (200 data points). Although the data varies quite a bit on a daily basis, the chart clearly depicts an upward trend.

A line chart often can help you spot trends in your data.

Figure 19.18. A line chart often can help you spot trends in your data.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named line charts.xlsx.

A line chart can use any number of data series, and you distinguish the lines by using different colors, line styles, or markers. Figure 19.19 shows a line chart that has three series. The series are distinguished by both markers and different line colors.

This line chart displays three series.

Figure 19.19. This line chart displays three series.

The final line chart example, shown in Figure 19.20, is a 3-D line chart. Although it has a nice visual appeal (especially with the shadow effect), it’s certainly not the clearest way to present the data.

This 3-D line chart does not present the data very well.

Figure 19.20. This 3-D line chart does not present the data very well.

Pie charts

A pie chart is useful when you want to show relative proportions or contributions to a whole. A pie chart uses only one data series. Pie charts are most effective with a small number of data points. Generally, a pie chart should use no more than five or six data points (or slices). A pie chart with too many data points can be very difficult to interpret.

Note

The values used in a pie chart must all be positive numbers. If you create a pie chart that uses one or more negative values, the negative values will be converted to positive values—which is probably not what you intended!

You can “explode” one or more slices of a pie chart for emphasis (see Figure 19.21). Activate the chart and click any pie slice to select the entire pie. Then click the slice that you want to explode and drag it away from the center.

A pie chart with one slice exploded.

Figure 19.21. A pie chart with one slice exploded.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named pie charts.xlsx.

The pie of pie and bar of pie chart types enables you to display a secondary chart that provides more detail for one of the pie slices. Figure 19.22 shows an example of a bar of pie chart. The pie chart shows the breakdown of four expense categories Rent, Supplies, Miscellaneous, and Salary. The secondary bar chart provides an additional regional breakdown of the Salary category.

A bar of pie chart that shows detail for one of the pie slices.

Figure 19.22. A bar of pie chart that shows detail for one of the pie slices.

The data used in the chart resides in A2:B8. When the chart was created, Excel made a guess at which categories belong to the secondary chart. In this case, the guess was to use the last three data points for the secondary chart—and the guess was incorrect.

To correct the chart, right-click any of the pie slices and choose Format Data Series. In the dialog box, select the Series Options tab and make the changes. In this example, I chose Split Series By Position and specified that the Second Plot Contains The Last 4 Values In The Series. I also replaced the default category name (Other) with Salary.

XY (scatter) charts

Another common chart type is an XY chart (also known as scattergrams or scatter plots). An XY chart differs from most other chart types in that both axes display values. (An XY chart has no category axis.)

This type of chart often is used to show the relationship between two variables. Figure 19.23 shows an example of an XY chart that plots the relationship between sales calls made (horizontal axis) and actual sales (vertical axis). Each point in the chart represents one month. The chart shows that these two variables are positively related: Months in which more calls were made typically had higher sales volumes.

An XY chart shows the relationship between two variables.

Figure 19.23. An XY chart shows the relationship between two variables.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named xy charts.xlsx.

Note

Although these data points correspond to time, the chart doesn’t convey any time-related information. In other words, the data points are plotted based only on their two values.

Figure 19.24 shows another XY chart, this one with lines that connect the XY points. This chart plots a hypocycloid curve with 200 data points. It’s set up with three parameters. Change any of the parameters, and you’ll get a completely different curve. This is a very minimalist chart. I deleted all the chart elements except the data series itself.

A hypocycloid curve, plotted as an XY chart.

Figure 19.24. A hypocycloid curve, plotted as an XY chart.

If this type of design looks familiar, it’s because a hypocycloid curve is the basis for a popular children’s drawing toy.

Area charts

Think of an area chart as a line chart in which the area below the line has been colored in. Figure 19.25 shows an example of a stacked area chart. Stacking the data series enables you to see clearly the total, plus the contribution by each series.

A stacked area chart.

Figure 19.25. A stacked area chart.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named area charts.xlsx.

Figure 19.26 shows the same data, plotted as a 3-D area chart. As you can see, it’s not an example of an effective chart. The data for products B and C are obscured. In some cases, the problem can be resolved by rotating the chart or using transparency. But I think the best way to salvage this particular chart is to select a new chart type.

This 3-D area chart is not a good choice.

Figure 19.26. This 3-D area chart is not a good choice.

Doughnut charts

A doughnut chart is similar to a pie chart, with two exceptions: It has a hole in the middle, and it can display more than one series of data. Doughnut charts are listed in the Other Charts category.

Figure 19.27 shows an example of a doughnut chart with two series (1st Half Sales and 2nd Half Sales). The legend identifies the data points. Because a doughnut chart doesn’t provide a direct way to identify the series, I added arrows and series descriptions manually.

A doughnut chart with two data series.

Figure 19.27. A doughnut chart with two data series.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named doughnut charts.xlsx.

Notice that Excel displays the data series as concentric rings. As you can see, a doughnut chart with more than one series can be very difficult to interpret. For example, the relatively larger sizes of the slices toward the outer part of the doughnut can be deceiving. Consequently, you should use doughnut charts sparingly. Perhaps the best use for a doughnut chart is to plot a single series as a visual alternative to a pie chart.

In many cases, a stacked column chart for such comparisons expresses your meaning better than does a doughnut chart (see Figure 19.28).

Using a stacked column chart is a better choice.

Figure 19.28. Using a stacked column chart is a better choice.

Radar charts

Radar charts are listed in the Other Charts category. You may not be familiar with this type of chart. A radar chart is a specialized chart that has a separate axis for each category, and the axes extend outward from the center of the chart. The value of each data point is plotted on the corresponding axis.

Figure 19.29 shows an example of a radar chart. This chart plots two data series across 12 categories (months) and shows the seasonal demand for snow skis versus water skis. Note that the water-ski series partially obscures the snow-ski series.

Plotting ski sales using a radar chart with 12 categories and 2 series.

Figure 19.29. Plotting ski sales using a radar chart with 12 categories and 2 series.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named radar charts.xlsx.

Using a radar chart to show seasonal sales may be an interesting approach, but it’s not the best. As you can see in Figure 19.30, a stacked bar chart shows the information much more clearly.

A stacked bar chart is a better choice for the ski sales data.

Figure 19.30. A stacked bar chart is a better choice for the ski sales data.

A more appropriate use for radar charts is shown in Figure 19.31. These four charts each plot a color. More precisely, each chart shows the RGB components (the contributions of red, green, and blue) that make up a color. Each chart has one series, and three categories. The categories extend from 0 to 255.

These radar charts depict the red, green, and blue contributions for each of four colors.

Figure 19.31. These radar charts depict the red, green, and blue contributions for each of four colors.

Note

If you view the charts in color, you’ll see that they actually depict the color that they describe. The data series colors were applied manually.

 

Surface charts

Surface charts display two or more data series on a surface. Surface charts are listed in the Other Charts category.

As Figure 19.32 shows, these charts can be quite interesting. Unlike other charts, Excel uses color to distinguish values, not to distinguish the data series. The number of colors used is determined by the major unit scale setting for the value axis. Each color corresponds to one major unit.

A surface chart.

Figure 19.32. A surface chart.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named surface charts.xlsx.

Note

It’s important to understand that a surface chart does not plot 3-D data points. The series axis for a surface chart, as with all other 3-D charts, is a category axis—not a value axis. In other words, if you have data that is represented by x, y, and z coordinates, it can’t be plotted accurately on a surface chart unless the x and y values are equally spaced.

Bubble charts

Think of a bubble chart as an XY chart that can display an additional data series, which is represented by the size of the bubbles. As with an XY chart, both axes are value axes (there is no category axis). Bubble charts are listed in the Other Charts category.

Figure 19.33 shows an example of a bubble chart that depicts the results of a weight-loss program. The horizontal value axis represents the original weight, the vertical value axis shows the number of weeks in the program, and the size of the bubbles represents the amount of weight lost.

A bubble chart.

Figure 19.33. A bubble chart.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named bubble charts.xlsx.

Figure 19.34 shows another bubble chart, made up of nine series that represent mouse face parts. The size and position of each bubble required some experimentation.

This bubble chart depicts a mouse.

Figure 19.34. This bubble chart depicts a mouse.

Stock charts

Stock charts are most useful for displaying stock-market information. These charts require three to five data series, depending on the subtype. This chart type is listed in the Other Charts category.

Figure 19.35 shows an example of each of the four stock chart types. The two charts on the bottom display the trade volume and use two value axes. The daily volume, represented by columns, uses the axis on the left. The up-bars, sometimes referred to as candlesticks, are the vertical lines that depict the difference between the opening and closing price. A black up-bar indicates that the closing price was lower than the opening price.

The four stock chart subtypes.

Figure 19.35. The four stock chart subtypes.

On the CD-ROM

A workbook that contains the charts in this section is available on the companion CD-ROM. The file is named stock charts.xlsx.

Stock charts aren’t just for stock price data. Figure 19.36 shows a chart that depicts the high, low, and average temperatures for each day in May. This is a high-low-close chart.

Plotting temperature data with a stock chart.

Figure 19.36. Plotting temperature data with a stock chart.

Learning More

This chapter introduced Excel charts, including examples of the types of charts that you can create. For many uses, the information in this chapter is sufficient to create a wide variety of charts.

Those who require control over every aspect of their charts can find the information they need in the next chapter. It picks up where this one left off and covers the details involved in creating the perfect chart.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset