|
Waterfall Charts that Cross the X Axis.Waterfall charts, described in the Waterfall Charts and Fancy Waterfall Chart pages on this web site, are a graphical approach to show how an initial value is increased and decreased by intermediate values, to reach its final value. When the intermediate value drops below the X axis, the stacked column chart approach no longer accurately displays these values. This page shows how to combine the Waterfall Chart technique with the Stacked Column Charts that Cross the X Axis approach to correct the chart's appearance. The input data shown below contains the previous year's profit and a list of items that contribute to profit with their corresponding effects on the following year's profit.
The table below provides the complete data range needed to chart how profit changes from 2003 to 2004 as various parameters are added or subtracted. Column A contains labels, column B the values. Column C uses formulas to determine the cumulative value. Columns D through J use formulas to compute the values to be plotted as stacked columns, following the examples cited in the previous paragraph. Column K uses a formula to compute values to be plotted as a line chart series, for adding labels above the columns in the chart; omit Column K if you don't want labels.
These are the formulas in columns C:J.
Select the two-area range highlighted in green in the table above. To select multiple areas, select the first area, then hold the Ctrl key while selecting each additional area. With this range selected, start the Chart Wizard and create a stacked column chart, shown below:
Double click on the X axis, select the Patterns tab, check None for Major and Minor Tick Marks and Low for Tick Mark Labels; select the Alignment tab, and change the Orientation to 90 degrees. Hide the Blank Pos and Blank Neg column series: select the series or the corresponding legend key and use the shortcut key Ctrl+1 (numeral one); select the Patterns tab, and choose None for Border and for Area. Format the other series appropriately: this example uses green for positive changes, red for negative changes, and blue for the initial and final values. While formatting any of the columns, click on the Options tab, and set the Gap Width to 0, so adjacent columns touch each other.
Finally, remove the legend to obtain the completed chart:
To add labels, copy the values in column K (shaded yellow above), select the chart, then use Paste Special from the Edit menu to add the data as a new series, with series name in the first row. Excel adds the data as another series of columns, stacked on top of the others, using the existing category labels.
Select the new series, go to the Chart menu, choose Chart Type, and select a line chart style.
Apply data labels to this series. The manual (i.e., tedious) way is to double click on the series, use the Data Labels tab to add arbitrary labels, then edit the text of each label. There are a couple of easy to use and free utilities that help you do this automatically:
Using either of these utilities, apply the "Amount" data from B2:B11 as data labels for the new Y label line chart series.
Finally a little cleanup. Double click on the Y label line series, and on the Patterns tab, pick None for Line and for Markers, so the series becomes invisible. Double click on the category axis, and on the Patterns tab, select Low for Tick Mark Labels. Adjust the Y axis maximum if needed to allow room for the labels.
Waterfall Chart UtilityIn this page and in the two links above I have described a technique for constructing waterfall charts in Excel. I have also written a Waterfall Chart utility that allows the user to construct waterfall charts charts directly from the data; the utility adds the necessary data to the table and then creates and formats the chart from this table. The utility is designed to work in Excel versions 2000, 2002, and 2003, and adjustments have been made to allow its use in 2007, though it's not fully integrated into the Excel 2007 Ribbon. The utility has not been tested in any Macintosh version or in Excel 97, it may or may not work on these versions. The Waterfall Chart utility is a beta version, available at no cost. Ultimately it will be incorporated into a commercial Advanced Charting utility. The Waterfall Charter dialog is shown below: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||