Creating Charts with the Chart Wizard


Creating Charts with the Chart Wizard

One of the terrific features in Excel is the Chart Wizard. The easiest way to create a chart in Excel is to use the Chart Wizard. The Chart Wizard leads you step by step through the task of creating a chart. Excel plots the data and creates the chart where you specify on the worksheet.

Creating charts with the Chart Wizard is a snap because you get help every step of the way. You are guided through four dialog boxes from which you create your chart: Chart Type, Chart Source, Chart Options, and Chart Location. You can preview the sample chart in all the steps and make changes to the chart at any time.

You can select data before you create a chart, or if you don't select anything and your worksheet is relatively simple, Excel grabs the data automatically. You begin with Excel's default (or automatic) chart and then modify it to your liking. With so many chart types and options, you have carte blanche for creating a chart that best suits your needs.

All charts start out basically the same. You have to create a basic chart with Excel's automatic settings before you can create more customized charts. If desired, you can modify the basic chart, using various tools. The first task is to select the data you want to chart. The second task is to bring up the basic chart.

Selecting the Chart Type and Subtype

You can choose a chart type from the Chart Type list and then choose a chart subtype from the Chart Subtype gallery in a Chart Wizard dialog box. A description of the chart type appears in the lower-right side of the Chart Wizard dialog box when you click a chart subtype.

Choosing the Data Range and Series

To control the orientation of your chart, you choose the data range and then plot a series in rows or columns. Sometimes when Excel produces a chart from a highlighted range, the chart is backward. The data series appears where categories should be and vice versa. How does Excel know which orientation to use? Well, Excel makes a guess based on your selected data. If you have more columns than rows, the columns become the categories on the x-axis. If you have more rows than columns , the rows become categories along the x-axis.

You can always change Excel's orientation for a chart if Excel guesses wrong. Here's how you can change the orientation. Choose to plot your data in rows if you want the rows to be translated into data series and columns into categories. The rows option is best used when the selected data range contains more columns than rows. In the Chart WizardStep 2 of 4Chart Source Data dialog box, you select the Rows option.

In some instances, you can create a chart by plotting your data in columns, which turns your columns into data series and rows into categories. This situation would occur when you have more rows than columns.

The chart's appearance depends on your choice, so make sure you choose a setup that fits your needs best.

When you select a range for the chart, be sure to include the labels such as the months of the year and the categories at the beginning of each. However, do not select the totals in rows or columns.

Setting Chart Options

All kinds of chart options are available for your chart, including titles, axes, gridlines, legend, data labels, and data table. These are the tabs in the Chart WizardStep 3 of 4Chart Options dialog box. Here's where you can add descriptive text to the chart if you like. For example, you can add labels to the Category (X) axis along the bottom of the chart and Value (Y) axis labels along the left side of the chart.

Choosing a Location for the Chart

In the final Chart Wizard dialog box, you can specify where you want to place the chart. You have two choices: As New Sheet and As Object In. The As New Sheet option lets you insert the chart on a separate chart sheet. A chart sheet is a separate element from the worksheet and is stored in the current workbook.

The As Object In option enables you to insert the chart as an object in the worksheet that contains the data you're charting. A chart object on a worksheet is useful for showing the actual data and its graphic representation side by side.

The first To Do in this hour helps you create a default chart (clustered column chart) using the Chart Wizard. The chart will be an embedded chart because Excel draws the chart on the same worksheet as the data. In the case where you are charting the totals, select only the totals in the row or column and not data that create them.

To Do: Create a Chart with the Chart Wizard
  1. Select cells A3:D8 on the Summary sheet of the Sales 1st Qtr workbook to identify the range you want to chart.

  2. Click the Chart Wizard button on the Standard toolbar. The Chart WizardStep 1 of 4Chart Type dialog box opens, displaying the chart types. The Clustered Column chart is the default chart type. You want to use this chart type.

    graphics/bookpencil_icon.gif

    When you create a chart, make sure the range you select includes the labels, but not the totals in rows or columns.


  3. Click the Next button to accept the Clustered Column chart type, and the Chart WizardStep 2 of 4Chart Source Data dialog box should appear with a sample chart.

  4. If you leave the Columns option selected, each column or data series represents the values for each product category by month. Hard Volume, Soft Cover, Audio Cassette, Web Site, and CD are the Category (X) axis labels. The month category names appear in the legend for the data series. The clustered column chart in Figure 12.2 shows the data series plotted by columns, which compares each product category by month. The chart is backward because you have more columns than rows. As a result, the columns become the categories on the x-axis. The Columns option is not a good choice. Instead, you want to compare each month by product categories. To do this, you need to plot the data series by rows rather than columns.

    Figure 12.2. The Chart WizardStep 2 of 4Chart Source Data dialog box, plotting data in columns.

    graphics/12fig02.jpg

  5. Select the Rows option (as shown in Figure 12.3). Each column or data series represents the values for each month by product category. January, February, and March are the Category (X) axis labels. The product category names Hard Volume, Soft Cover, Audio Cassette, Web Site, and CD appear in the legend for the data series.

    Figure 12.3. The Chart WizardStep 2 of 4Chart Source Data dialog box, plotting data in rows.

    graphics/12fig03.jpg

  6. Click the Next button. Excel displays the Chart WizardStep 3 of 4Chart Options dialog box. The dialog box contains a sample chart and options for adding titles, changing the legend, and formatting other elements in the chart.

    graphics/lightbulb_icon.gif

    To return to a previous Chart Wizard dialog box while using the Chart Wizard, click the Back button. To go to the next Chart Wizard dialog box, click the Next button. You can stop the process of creating a chart by clicking the Cancel button in any Chart Wizard dialog box.


  7. On the Titles tab, click the Chart Title text box and type Sales 1st Quarter . Excel bolds the chart title text.

  8. Click the Next button. You should see the Chart WizardStep 4 of 4Chart Location dialog box. You can place the chart on a separate chart sheet or as an object in an existing worksheet. A chart sheet is a separate element from the worksheet and is stored in the current workbook. Keep the As Object In option and Summary sheet selected.

  9. Click the Finish button. The chart appears near the top of the worksheet. The chart has a plot area with data series columns, and a legend on the right. Selection handles surround the border of the chart. You also should see the Chart toolbar. Sometimes the Chart toolbar does not always automatically appear when the chart is displayed. Figure 12.4 shows the clustered column chart and the Chart toolbar.

    Figure 12.4. The clustered column chart and Chart toolbar.

    graphics/12fig04.jpg

A chart is handled as an object in an Excel worksheet, and so you can move and resize the chart, just as you would any object in Excel.

To move a chart on a worksheet, click anywhere in the chart to select it and then hold down the left mouse button. When the mouse pointer changes to a four-headed arrow, drag the chart to a new place.

To change the size of a chart, select the chart and then drag one of its handles (the black squares that border the chart). Drag a corner handle to change the height and width or drag a side handle to change only the width.

When you save the worksheet, Excel saves the chart along with it. Unless you remove it, this chart appears on the worksheet. You can remove a chart by clicking it and then pressing the Delete key.



Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours
Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours (Sams Teach Yourself in 24 Hours)
ISBN: 1435276337
EAN: 2147483647
Year: 2003
Pages: 279
Authors: Trudi Reisner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net