SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 187 | Next

Jim DeMarco

"Pro Excel 2007 VBA"

Data selected for charting
CHAPTER 5 n CHARTING IN EXCEL 2007 194
nNote You??™ll notice that we did not select the row or column containing the total sales amounts. Excel will
include them in the chart, which will throw our vertical (value) axis amounts off.
8. On the Insert Ribbon, go to the Charts section, and click the Column chart type dropdown
list to display the many column chart types available to you.
9. In the 3-D Column section, choose the first (leftmost) item, the 3-D Clustered Column
chart type, as shown in Figure 5-4.
Figure 5-4. Column chart type selection menu
10. Stop the Macro Recorder.
The new chart is inserted in the worksheet. Notice in Figure 5-5 that Excel has highlighted
the data ranges associated with each chart element (legend, values, and horizontal axis label
ranges).
CHAPTER 5 n CHARTING IN EXCEL 2007 195
Figure 5-5. The Beverage sales chart
In addition to inserting the chart, Excel also added a context ribbon. Context ribbons provide
commands relative to the currently selected object. In this case it??™s a chart, but it could be
an inserted image or any other object that can be acted upon. Context ribbons are noted by a
title bar above the ribbon area. Figure 5-6 shows the Chart Tools context ribbon. It contains
three of its own ribbons: Design, Layout, and Format.
Figure 5-6. The Chart Tools context ribbon
Excel??™s default charting behavior is to display the data values by column (by product in
this example). The vertical and horizontal axes may not show the data with the orientation
you expected.


Pages:
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199