+ Reply to Thread
Results 1 to 7 of 7

Evenly space bars within hierarchical bar chart

  1. #1
    Registered User
    Join Date
    01-23-2015
    Location
    Edmonton, Canada
    MS-Off Ver
    Office 2013
    Posts
    3

    Evenly space bars within hierarchical bar chart

    I'm having a problem trying to improve the formatting of a chart. I may actually be going about this all wrong. Below is a screenshot for illustrative purposes...

    Screen Shot 2015-01-23 at 7.59.40 PM.png

    The chart has 7 series. The high-level category has two levels: intervention and comparison. The lower-level category also has two levels: target and non-target. The pharmacy, general retailer, itinerant drug vendor and ALL target series only have values within the target category. The private facility, health worker and ALL non-target series will only have values within the non-target category.

    Currently, the series are not centered within their respective categories because the series that don't belong in the category have zero values so they are taking up real estate on the x-axis.

    Is there a way to center the series within their respective categories? Any help would be greatly appreciated.

  2. #2
    Forum Contributor
    Join Date
    01-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    240

    Re: Evenly space bars within hierarchical bar chart

    try hiding the rows in the data set where % is zero - the default is for excel not to chart hidden rows.

    You might need to post a workbook with dummy data to get a better answer
    Please consider adding a * if I helped.

  3. #3
    Registered User
    Join Date
    01-23-2015
    Location
    Edmonton, Canada
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: Evenly space bars within hierarchical bar chart

    Hi Brendan, thanks for your reply. I'm not quite sure how I can resolve this problem by hiding rows with zero values. I think the issue is that there are no rows with only zero values. Each series/row has 2 non-zero values (for the categories they fall within). Perhaps, I'm not understanding the solution? Attached is a workbook.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    240

    Re: Evenly space bars within hierarchical bar chart

    To get what i am suggesting to work you'll need to rejig the data table so that you either have whole row or columns of data that are zero and therefore can be hidden.

    This might not make the suggestion particularly helpful! Depends on how you got to your datatable - if you did the pivot yourself no problem.

    See sheet 2 in the attached. Note the hidden columns - if you unhide they get charted.
    Attached Files Attached Files

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Evenly space bars within hierarchical bar chart

    Move Non Target data to secondary axis
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    01-23-2015
    Location
    Edmonton, Canada
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: Evenly space bars within hierarchical bar chart*

    Hi Brendan, this worked perfectly! I've got a lot to learn about formatting Excel charts. Thanks!

    Kevin

  7. #7
    Forum Contributor
    Join Date
    01-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    240

    Re: Evenly space bars within hierarchical bar chart

    Sounds like you are sorted?

    To mark your thread solved do the following:

    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    Consider adding rep * to whoever helped.

    regards
    bren

+ 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. Space between bars of excel chart
    By kiruking007 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-21-2013, 01:49 PM
  2. distributing bars evenly on chart
    By shawzozo in forum Excel General
    Replies: 1
    Last Post: 04-28-2010, 09:43 AM
  3. [SOLVED] hierarchical axis labels reverse chart
    By steve in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-07-2006, 04:15 PM
  4. Add space between bars
    By coco in forum Excel General
    Replies: 0
    Last Post: 12-01-2005, 09:10 AM
  5. [SOLVED] How do I create a histogram with no space between bars?
    By Ann in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-08-2005, 07:05 PM

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