+ Reply to Thread
Results 1 to 7 of 7

Four bars - two should overlap

  1. #1
    Registered User
    Join Date
    04-27-2017
    Location
    New York
    MS-Off Ver
    MS 365 v2211
    Posts
    85

    Four bars - two should overlap

    Hello,

    This is thread is based on a former recent thread (linked directly right here).

    I learned how to use the 'series overlap' tool to shift bars in front of one another for comparison purposes. However, when I use that tool, it applies the shift to every bar in the chart. I have an example chart attached.

    My end goal for the attached is for each holiday to have two overlapping bars each (2018 rev/exp; 2019 rev/exp).

    Thank you for your time
    Attached Files Attached Files
    Last edited by RookA1; 11-22-2019 at 09:51 AM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Four bars - two should overlap

    What I see you describing is a clustered and stacked column chart -- though you've opted to not use an actual stacked chart for this as we discussed in the other thread. The standard approach that I think of for clustered and stacked column/bar charts is this one: https://peltiertech.com/clustered-st...mn-bar-charts/ Note that much of the work is arranging the data in the spreadsheet. I think it can work with your "overlapped" clustered column chart -- if you will do the same kind of thing with the data arrangement in the spreadsheet. Spread it out so there are blank cells and rows throughout the data so that each column ends up where you need it to be.

    Here's what I did in your sample file:

    1) Insert two blank rows between each holiday
    2) Move the 2019 data down 1 row
    3) Select each data series in the chart and adjust the ranges to account for the added rows.
    4) Select a data series and format with no gap (to push the adjacent "columns" next to each other). This step is probably not necessary, but I thought the chart would be more readable.
    5) You can then go through the process of improving the horizontal axis labels (using Peltier's tutorial) if desired.

    questions?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Four bars - two should overlap

    It takes a bit (or a lot ) of fidling with a secondairy axis and placing 2 of the 4 bars on that secondairy axis and then adjust both series overlap and gapwidth until you get the paired bars view..

    I moved 2019 revenue and 2018 Expence to secondairy axis
    that gave me the paired look.

    have a look if that works for you..
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-27-2017
    Location
    New York
    MS-Off Ver
    MS 365 v2211
    Posts
    85

    Re: Four bars - two should overlap

    Thank you both. I'm getting very close. Right now I'm encountering an issue where the bigger bar covers the smaller one entirely (see Halloween - expenses exceeded revenue). Is there a way to bypass this?

    I'm guessing this is occurring because it's a clustered instead of stacked column.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Four bars - two should overlap

    Not really. This occurs because Excel plots each data series in the specified order (1st it plots data series 1, then it plots data series 2 on top of data series 1, and so on). In order to get a smaller column to be visible (in front of) a larger column, that column must be plotted after the larger column. But plot order applies to entire data series, not individual points.

    I like what Roel did -- partial overlap rather than 100% overlap. The partial overlap allows the reader to see both columns, but also be able to see which pairs are for the same year. I would probably recommend something where you do partial overlap rather than full overlap.

    If you decide that you must have full overlap, then you will probably need to add additional data series for each of the 8 scenarios:
    1) 2018 revenue that is larger than 2018 expense
    2) 2018 expense that is larger than 2018 revenue
    3) 2019 revenue that is larger than 2019 expense
    4) 2019 expense that is larger than 2019 revenue
    5) 2018 revenue that is smaller than 2018 expense
    6) 2018 expense that is smaller than 2018 revenue
    7) 2019 revenue that is smaller than 2019 expense
    8) 2019 expense that is smaller than 2019 revenue

    Make sure to plot those 8 series so that the "larger than" series are the first 4 data series and the "smaller than" data series are the last 4. Then format so that the appropriate columns have the same color/formatting. Most of the work is in the spreadsheet -- getting the data into the 8 columns. Once the spreadsheet work is done, creating the chart is basically the same as creating any of the other charts we've looked at over the two threads.

    It's up to you how you exactly how you want to do it -- this idea will apply to any of the chart strategies we have talked about. How would you like to proceed? What difficulties do you encounter in implementing your choice?

  6. #6
    Registered User
    Join Date
    04-27-2017
    Location
    New York
    MS-Off Ver
    MS 365 v2211
    Posts
    85

    Re: Four bars - two should overlap

    Yes - agreed that it makes more sense to represent that data that way. Thank you (both) for pointing that out. Going to reach a final product on my end that looks nice and clean, then will mark this as solved. Thanks for taking the time to assist.

  7. #7
    Registered User
    Join Date
    04-27-2017
    Location
    New York
    MS-Off Ver
    MS 365 v2211
    Posts
    85

    Re: Four bars - two should overlap

    Mission complete on this. I ended up using some advice from this video guide and decided to make the expenses part of a secondary axis and kept the revenue on the primary axis. Then, I made sure the min and max on both were identical.

    Thanks to all who provided advice.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Column chart with two axis, bars overlap
    By Rob K in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-16-2016, 06:00 AM
  2. [SOLVED] Bar Graph With 2 Axis - Bars On The Primary Axis Overlap Bars On The Secondary Axis
    By Variablez in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-11-2013, 08:38 AM
  3. Excel 2007 : 8 series, need 2 x 4 bars 100 % overlap ?
    By roland willems in forum Excel General
    Replies: 3
    Last Post: 10-16-2011, 06:53 PM
  4. Error bars overlap and are indistinguishable
    By hadley in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-05-2006, 02:50 AM
  5. bars overlap, how do I stop this?
    By stuckersubs in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-12-2005, 09:10 AM
  6. Removing overlap of bars when 2 Y axes are used
    By PP74 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-09-2005, 09:06 PM
  7. [SOLVED] how can I have no overlap bars when using axis2?
    By Fernando in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-18-2005, 07:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1