+ Reply to Thread
Results 1 to 8 of 8

Dates by Month on X-Axis in Horizontal Stacked Bar Chart

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Dates by Month on X-Axis in Horizontal Stacked Bar Chart

    Hi all,

    I understand some of the nuances with working with the horizontal bar chart in a Ganntt style format but can't seem to figure out a way to force the X-Axis to behave the way I'd like it to.

    In Excel 2007, I am trying to get the X-Axis to show major units of Months. However, in my chart options I can only change the Y-Axis to be Dates. Changing the Scale to something like a 31 day unit gets me close, but still goes wonky after a couple of months as it drifts.

    Changing my data layout (from the below) to be a vertical format produces the same problem, just in the other direction.

    My data looks as follows:


    System Blocker Production Migrataion Retired
    Sys1 1/1/2012 780
    Sys2 1/1/2012 400 60 90
    Sys3 2/1/2013 30 5 1

    The Blocker column is formatted as "No Fill" in order to cover a portion of the time-scale, so that tasks don't always start at the beginning of the time scale.

    My X-Axis displays as random dates throughout the period and all of my data displays properly in terms of the scale on the grid.

    What is NOT working is that the dates shown on the X-Axis really need to be based on a Monthly scale instead of the randomly selected dates Excel is using.

    I can't seem to find the right combination of options to make that happen or force a scale on the X-Axis.

    I've been through a lot of the X-Axis discussions on this and other sites, but can't find an example of exactly what I am doing here.

    I have also tried creating a secondary Axis and the dates don't align properly, even with the same scale applied. And also have tried the copy/paste-special method of adding the explicit dates but that forces the whole chart into a fairly unusable format.

    Am open to all suggestions and if you can provide specific details, even better.
    Attached Files Attached Files

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

    Re: Dates by Month on X-Axis in Horizontal Stacked Bar Chart

    First you will need to use a 2d chart rather than 3d.

    Add another series and plot as column. Set the category values for this to be dates and then the secondary x axis will allow you to set Major unit as dates.

    For the example I have left all the axes visible.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    08-22-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Dates by Month on X-Axis in Horizontal Stacked Bar Chart

    Thanks Andy it was the "Plot as Column" part I was stuck on.

    Absolutely appreciate your expertise and input!

  4. #4
    Registered User
    Join Date
    08-22-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Dates by Month on X-Axis in Horizontal Stacked Bar Chart

    Ok, on further review, the Dates are displaying by month but are not lining up with the date scale being used by the primary X-Axis, which was one of the problems I had when adding that secondary axis to start with.

    If you look at the secondary X-Axis between "Sep '13" and "Oct '13" - the Primary X-Axis marks one of the interim dates as "11/22/2013" which is not really possible.

  5. #5
    Registered User
    Join Date
    08-22-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Dates by Month on X-Axis in Horizontal Stacked Bar Chart

    I changed and reset the scales to be the same and that did the trick. Not sure what went wrong the first time but looks fantastic now. Thanks again!

  6. #6
    Registered User
    Join Date
    05-06-2012
    Location
    Sept. trearso
    MS-Off Ver
    Mac Office Excel 2011
    Posts
    1

    Re: Dates by Month on X-Axis in Horizontal Stacked Bar Chart

    Hi Bandolier2k, I'm having the same issue you had (with the secondary x-axis). I'm trying to figure out how to "change and reset the scales" as you said you did, but I'm not having much luck. Any hints you can pass my way?

  7. #7
    Registered User
    Join Date
    05-16-2018
    Location
    Norwich, England
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Dates by Month on X-Axis in Horizontal Stacked Bar Chart

    Hi all. Sorry for a reply to an old thread. I have a stacked Bar chart in Excel 2010. I've added a secondary horizontal date range but when I right click and format axis I have no date options like the excellent example I downloaded from this thread. I have my chart in the same excel workbook that the example is opened in on another tab. I can see the date options on the example but not on mine. The charts appear to be the same type.. Any ideas?
    Attached Images Attached Images

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Dates by Month on X-Axis in Horizontal Stacked Bar Chart

    Tbonetone welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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