+ Reply to Thread
Results 1 to 6 of 6

Left Align Vertical Axis

  1. #1
    Registered User
    Join Date
    07-09-2020
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7

    Left Align Vertical Axis

    Hello,

    I am struggling mightily to left align the vertical axis of my stacked bar chart. The data set is left aligned but when I create the bar chart, the data is right aligned. How do I fix this?

    Screenshot.jpg

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Left Align Vertical Axis

    This type of graph (bar) is quite special, because it has opposite to all other graphs in excel assignment of axes.
    I doubt if such alignment as you want could be obtained with standard tools.

    Two main options come to my mind:
    See Andy's suggestion on using texboxes for special labelling: http://www.andypope.info/vba/Axislabel_textboxes.htm
    Use Camera tool (more about this tool - see for instance https://trumpexcel.com/excel-camera-tool/ ) presented in attached file
    Attached Files Attached Files
    Best Regards,

    Kaper

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

    Re: Left Align Vertical Axis

    Did you mean right align? Your picture looks like the labels are centered.

    See attached which has right aligned category labels.

    The chart is a mixture of stacked bars for Planned dates.
    Lines for actual dates, which also provides a proper date horizontal axis

    1321576.png
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    07-09-2020
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7

    Re: Left Align Vertical Axis

    Quote Originally Posted by Andy Pope View Post
    Did you mean right align? Your picture looks like the labels are centered.

    See attached which has right aligned category labels.

    The chart is a mixture of stacked bars for Planned dates.
    Lines for actual dates, which also provides a proper date horizontal axis

    Attachment 686250
    Thank you for the response. I do mean left aligned and the labels in my chart are right aligned, not center. I want the 'Phases' to all be aligned to the same point but, as Kaper pointed out, this may not be possible. Seems a bit odd as this is a fairly straightforward formatting issue. Why Excel limits this I have no idea.

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

    Re: Left Align Vertical Axis

    Not sure if your version of excel offers the ability to remove word wrap from data labels.
    But in latest version you can use data labels to mimic vertical axis category labels with left alignment.

    To position the data labels you can use this line of code in the immediate window. ALT+F11 to go to VBE. CTRL+G to open immediate window.

    Apply datalabels to Target Pad series. Format data label to show Category and on the textbox formatting remove wordwrap.
    Select chart and use the following line of code in immediate window

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-14-2023
    Location
    Callao, Peru
    MS-Off Ver
    O365
    Posts
    1

    Re: Left Align Vertical Axis

    Hello, is this what you're looking for?

    Attachment 849662

    Credits: sumproduct(dot)com

+ 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. [SOLVED] Secondary Vertical Axis Bar not in sync with Primary Vertical Axis
    By naira in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-30-2019, 03:35 PM
  2. VBA excel to word insert footer (Text - Left align) & (Page number - Right align)
    By Richavlaues in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2017, 06:22 PM
  3. [SOLVED] How do I align text left the horizontal axis labels and wrap text them?
    By rs1aj in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-11-2015, 03:52 AM
  4. Replies: 0
    Last Post: 05-17-2006, 09:55 PM
  5. can I make the vertical axis the category axis in Excel line graph
    By power1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-20-2006, 04:50 PM
  6. Left align '$' and right align numbers?
    By skeetley in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 03:12 AM
  7. [SOLVED] how to align vertical cells horizontally
    By Trice in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-12-2005, 01:05 PM

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