How to Add in Recession Bars to Your Line Graphs Using Excel
An easy way to improve the quality of your economic or financial graphs is to add recession bars; they enhance both the professional look and usefulness of your graph.
The common way people add recession bars is simply drawing colored rectangles over your graph, but if you later want to add more data or even resize the graph, your going to have to resize all of the rectangles and your probably going to make a mistake anyway!
The following method lets you resize your graph or add data on the fly while preserving the look, and more importantly, the accuracy of your graph.
Step 1: Find a Time-Series Data Set
A time-series graph is any graph that has a sequence of data points corresponding to a sequence of time points. Monthly unemployment, quarterly GDP, and weekly claims for unemployment insurance are all common time-series publicly available online.
This tutorial assumes you know the basics of graphing a time-series. If you don't have a time-series, want a refresher, or want to make one real quick, see How to Graph a Time Series in Excel.
Once you have your data, add a new column (or row) called Recession Values. You should think of this as any other time-series in that each value will correspond to one date. For now fill that entire column with -1.
(Short Cut--- If you put -1 in the top entry and then highlight that cell. Press and hold "Ctrl" + "Shift" and press "End." Now let go. Press and hold "Ctrl" and press letter "D". The entire column will have filled with -1.)
Step 2: Get Recession Dates
To find Recession Dates, go to the National Bureau of Economic Research Business Cycle Dating Committee's webpage http://www.nber.org/cycles/cyclesmain.html.
They are the official word on when a recession began and ended. Roughly speaking, the column labeled "Peak" is the turning point into recession; the column labeled "Trough" is the turning point out of recession. These are the dates you need to use to position your recession bars.
(Note: You may disagree with their definition of a recession, but they are the standard; everyone uses their dates.)
Step 3: Input the Recession Dates
This step is not fun, but you only have to do it once and you can reuse the data to add recession bars instantly to any graphs you want.
In your excel spreadsheet, under the "Recession Values" column, put a 1 for dates that correspond to recession. For example, my data starts in 1950 so the first relevant recession is July 1953 - May 1954. I then put a 1 for all dates from (and including) July 1953 to (and including) May 1954. This is illustrated below.
Step 4: Plot Your Graph
Plot a line graph with all the series you want to include and the "Recession Values" series. You can start to see how our recession bars will work.
Step 5: Change Axis
Right-click the Recession Values series (in my case its the red line).
Select "Format Data Series..."
In the "Series Options" Tab, choose to "Plot on Secondary Axis."
Step 6: Change Chart Type
Again, right-click on the Recession Value Series.
But this time, select "Change Series Chart Type" And select the basic Area Graph chart.
Step 7: Change Secondary Axis
Right-click on the axis on the right. This is the secondary axis.
Select "Format Axis".
On the "Axis Options" Tab make the minimum a fixed .5 and the maximimum a fixed .51
This corresponds to the first two rows of the screen shot on the right.
Step 7: Make the Recession Bars Useful
Now we need to make the recession bars unobtrusive so they don't make it difficult to read our other data series.
Right-click on the Recession Values series. (they should look roughly like recession bars at this point).
Select "Format Data Series"
In the "Border Color" tab, select "No line"
In the "Fill" tab, select "solid fill." Here you can select the color of your Recession Bars and also the transparency. I usually go for a medium red or purple color and have a transparency of around 40%.
Step 8: Make the Graph Useful
Add titles, axis labels, make your fonts bold and legible. Do anything you normally do to make your graph look good.
Step 9: Remove the Secondary Axis Labels
The secondary axis is necessary to have our recession bars, but it is ugly and not useful in anyway so why not make it invisible.
Right-click on the right-hand side axis.
Select "Format Axis."
In the "Axis Options" tab, set "Major tick mark type", "Minor tick mark type", and "Axis Labels" to none.
Remember that the series you created for the recession values can be copied and pasted into any data set you have.
Comments, suggestions, or questions are very welcome.
More by this Author
High quality graphs and can be achieved quite easily using Excel once you have a solid foundation of the basics. This tutorial walks you through the basics of how to graph a time series using excel. Everything...