+ Reply to Thread
Results 1 to 7 of 7

How to add a vertical line graph on a stacked horizontal bar chart?

  1. #1
    Registered User
    Join Date
    11-19-2013
    Location
    HK
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    8

    How to add a vertical line graph on a stacked horizontal bar chart?

    As per title.

    Please kindly explain how to do it step by step.

    The ideal result will be adding the grey line (total value) on the bar chart like this: Idea.png

    The excel (2010 version) file with data is here:Bar and line.xlsx

    Thank you so much for the help!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: How to add a vertical line graph on a stacked horizontal bar chart?

    Confused... The grey line is somewhat offset from the actual totals in the data rows. In row 2, the actual total is 4.29. Is it intentional that your grey line is at about 5.0? I so, what sort of offset do you want?

  3. #3
    Registered User
    Join Date
    11-19-2013
    Location
    HK
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    8

    Re: How to add a vertical line graph on a stacked horizontal bar chart?

    Dear Glenn,

    The "total" column is not a sum of all steps but a separate set of values that I wish to show as a vertical line graph.

    Cheers!

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

    Re: How to add a vertical line graph on a stacked horizontal bar chart?

    Add a new series
    change to xy-scatter
    set the data ranges for the x and y values
    set the maximum value for the secondary vertical axis in order to align data points
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    11-19-2013
    Location
    HK
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    8

    Re: How to add a vertical line graph on a stacked horizontal bar chart?

    Dear Andy,

    Thanks a lot! It works well.

  6. #6
    Registered User
    Join Date
    06-20-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to add a vertical line graph on a stacked horizontal bar chart?

    Quote Originally Posted by Andy Pope View Post
    Add a new series
    change to xy-scatter
    set the data ranges for the x and y values
    set the maximum value for the secondary vertical axis in order to align data points
    Sorry to open up an old thread but I need to do exactly what you're talking about. My problem is that I don't know how to set the data ranges for X and Y values or set the maximum value for the secondary vertical axis in order to align data points. Can you give me some more detailed instruction?

    thanks.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: How to add a vertical line graph on a stacked horizontal bar chart?

    Julzology,
    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.
    Ben Van Johnson

+ 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. Stacked waterfall chart with horizontal line
    By kalam1989 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-28-2013, 12:42 PM
  2. [SOLVED] 3 axis chart with stacked bar graph and line graph above
    By hefe_espada in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-26-2013, 12:53 PM
  3. [SOLVED] Display vertical line on stacked line chart already using primary and secondary axises
    By ben_hensel in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-05-2012, 10:21 AM
  4. Manually add fixed vertical horizontal line to chart
    By datacruncher in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-21-2009, 08:33 AM
  5. How do i add a line graph onto a stacked column chart using data
    By Nicola in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-06-2005, 11:05 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