How to Add in Recession Bars to Your Line Graphs Using Excel

Updated on November 1, 2016

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

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.

Press "OK".

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.

This article is accurate and true to the best of the author’s knowledge. Content is for informational or entertainment purposes only and does not substitute for personal counsel or professional advice in business, financial, legal, or technical matters.


    0 of 8192 characters used
    Post Comment
    • profile image


      22 months ago

      Very helpful!! Thank you!

    • profile image

      Jon Peltier 

      2 years ago

      Using an area chart type for the shaded regions may result in trapezoid-shaped shadings, narrower at the top and wider at the bottom. In your example, there are so many time points that the sloped sides are still nearly vertical, but for some cases it will not look good.

      To fix this, use a column chart type, with gap width of zero.

    • profile image


      8 years ago

      It really helps. thanks very much!!!!!!!!!!

    • InflationEditor profile image


      8 years ago

      Very interesting. I do it differently and I think it takes fewer steps. For instance in my Historical Unemployment Chart I just choose the highest value on the left hand scale (in this case 160 Million and put that in all the data points where there is a recession, once the chart is created right click on the data series and change it to a bar graph from a line graph and adjust the color etc. This way there is no messing with the right hand scale.

    • Zazuzu profile imageAUTHOR


      9 years ago

      @Siji and @Lee Mack

      Glad you liked it! Let me know if you have any trouble implementing the technique.

    • Zazuzu profile imageAUTHOR


      9 years ago

      @LJ Tucker

      Thanks! You can definitely use this for "tagging" all kinds of data. In the future, I might post a couple different techniques for tagging other types of data.

    • Zazuzu profile imageAUTHOR


      9 years ago


      What I mean by recession bar is all of those pink lines on the graph at the top of the page. Those lines are denoting the time periods in which the US economy was in a recession. The left side of each pink line is the start of a recession; the right side of each pink line is the end of the same recession.

    • profile image

      Lee Mack 

      9 years ago

      A very elegant solution indeed. For someone who has a hard time getting these things right this makes it a lot simpler.

    • profile image


      9 years ago

      This is an informative article.Your techniques are very helpful.

    • LJ Tucker profile image

      LJ Tucker 

      9 years ago

      Nice solution, and a very clear explanation.

      I don't work with a lot of time series, but your technique will help me with some other applications where I want to graphically "tag" a subset of my items.

    • profile image


      9 years ago

      The article is nice but may i know what is meant by recession bar.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)