+ Reply to Thread
Results 1 to 7 of 7

How to overlap 2 series of a bar chart

  1. #1
    Forum Contributor
    Join Date
    02-01-2021
    Location
    Manchester
    MS-Off Ver
    365
    Posts
    218

    How to overlap 2 series of a bar chart

    The attached work book shows two series of data plotted on one axis and partialy overlapping.
    I wish to use a secondary axis for the GM% series and still retain the overlap. When I try to do this manually I always fail because the overlap becomes 100%.
    I know that I can plot the two series at different bar widths but a partial overlap of the same widths is what I want to achieve.
    I want to run a macro while doing this so I can do it with vba.
    Can any one help me please?
    John
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: How to overlap 2 series of a bar chart

    I would use a secondary axis and present the data as a combination of a column and line graph. See file.
    Attached Files Attached Files
    Last edited by Vraag en antwoord; 07-04-2021 at 11:21 AM.
    Messages have been translated from Dutch to English by means of google translate.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,122

    Re: How to overlap 2 series of a bar chart

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    02-01-2021
    Location
    Manchester
    MS-Off Ver
    365
    Posts
    218

    Re: How to overlap 2 series of a bar chart

    Vraag en antwoord,
    Thanks for your suggestion. I will use it for now as it is a great improvement, but I am still looking for an overlap of primary and secondary axes.
    John

  5. #5
    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,629

    Re: How to overlap 2 series of a bar chart

    You may add two dummy series. One drawn on primary axis, another on secondary axis.
    Play with the sequence of series in graph (see attachement).
    If dummy for main axis is before main axis real series, then dummy for secondary axis shall be after real data for the series to be presented on secondary axis.
    You may use some reasonable values for these dummy series first (see first worksheet), and when you finish the positioning you shall change all these dummy series to 0 (see second sheet).
    After adding series you will have also extra legend entries.
    To delete them click on the legend (whole legend will be selected) then click on the unwanted entry - only this entry will be selected.
    Then press Delete.
    See the screenshot in second worksheet.
    Attached Files Attached Files
    Best Regards,

    Kaper

  6. #6
    Forum Contributor
    Join Date
    02-01-2021
    Location
    Manchester
    MS-Off Ver
    365
    Posts
    218

    Re: How to overlap 2 series of a bar chart

    Kaper
    I have managed to write some code which carries out the essence of your suggestion. I am delighted it works.
    Thank you for your interest in my problem, and for your suggestion
    John

  7. #7
    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,629

    Re: How to overlap 2 series of a bar chart

    Glad to hear so,
    and thanks for marking thread solved and for a reputation point

    If you could share the code here, there is a chance somebody with the same type of problem could find (and reuse) it.

+ 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] How to overlap series in column chart
    By nazdiana in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 10-31-2017, 03:35 AM
  2. Replies: 1
    Last Post: 03-15-2017, 03:58 AM
  3. Overlap Bar Chart for a SINGLE Series
    By TestMailinator in forum Excel General
    Replies: 1
    Last Post: 01-28-2015, 04:03 PM
  4. elliminating series overlap on volume-open-high-low-close chart
    By luv2glyd in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-27-2012, 03:36 AM
  5. Bar-chart series overlap due to Secondary Axsis
    By akj375 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-29-2012, 08:24 AM
  6. Bar-chart series overlap due to Secondary Axsis
    By akj375 in forum Excel General
    Replies: 0
    Last Post: 01-28-2012, 02:33 PM
  7. [SOLVED] Can I overlap only two of four data series in Excel Column Chart?
    By Jon Erickson in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-20-2005, 09:35 AM

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