XL: Creating Charts with Multiple Groups of Stacked BarsID: Q77241
|
Normally, data series in a stacked column or bar chart have one stack
per category. However, it is possible to arrange your data so that the
chart appears to have more than one stack per category.
The following sample data produces ten different stacks with two
columns each. The first column has the Y2 value stacked over the Y1
value; every other column has the Y3 value stacked over the Y4 value.
To create the chart, type the following into a worksheet:
A1 : X B1 : Y1 C1 : Y2 D1 : Y3 E1 : Y4
A2 : X1 B2 : 1 C2 : 2 D2 : E2 :
A3 : B3 : C3 : D3 : 3 E3 : 4
A4 : X2 B4 : 1 C4 : 2 D4 : E4 :
A5 : B5 : C5 : D5 : 3 E5 : 4
A6 : X3 B6 : 1 C6 : 2 D6 : E6 :
A7 : B7 : C7 : D7 : 3 E7 : 4
A8 : X4 B8 : 1 C8 : 2 D8 : E8 :
A9 : B9 : C9 : D9 : 3 E9 : 4
A10: X5 B10: 1 C10: 2 D10: E10:
A11: B11: C11: D11: 3 E11: 4
The labels X1 through X5 appear along the horizontal axis. Y1 through
Y3 appear in the legend as series names. You can extend this chart to
include more groups by adding more data in two rows for each new
group.
The number of rows per category label defines the number of stacks per
group. To add another group of two bars, insert a row before each X
label and add two more columns of data in the new row, such as Y5 and
Y6.
The number of columns of data per row defines the number of columns in
each stack. For example, if the values for Y3 in the above chart were
moved to the first row of each group, the chart would still have two
stacks per group. However, the first stack would contain three columns
and the second stack would contain only one column.
column charts
bar charts
column charts
bar charts
Additional query words: 2.10 2.20 3.00 spreadsheet xl97 side by side adjacent
Keywords : kbchart xlchart
Version : WINDOWS:2.0,3.0,4.0,5.0,7.0,97; MACINTOSH:2.0,3.0,4.0,5.0
Platform : MACINTOSH WINDOWS
Issue type : kbinfo
Last Reviewed: March 23, 1999