+ Reply to Thread
Results 1 to 6 of 6

STACKED BAR Chart: is it possible to have a target line without use the XY Scatter method?

  1. #1
    Registered User
    Join Date
    10-05-2016
    Location
    NC
    MS-Off Ver
    2016
    Posts
    6

    STACKED BAR Chart: is it possible to have a target line without use the XY Scatter method?

    I have a stacked bar chart and trying to determine if it is possible to get a target line on the chart without using the XY scatter method?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,683

    Re: STACKED BAR Chart: is it possible to have a target line without use the XY Scatter met

    Just change the target series to a line

    A sample data spreadSheet would help , see yellow banner
    I have made a quick example here
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    10-05-2016
    Location
    NC
    MS-Off Ver
    2016
    Posts
    6

    Re: STACKED BAR Chart: is it possible to have a target line without use the XY Scatter met

    I should have specified "horizontal" stacked bar chart.

    For some reason just changing it to a line in the horizontal stacked bar chart will not work, or least I can't get it to work.

    I can get the XY scatter method to work but I have 19 charts and when I copy then go back to change and select data I have to go through the whole drill of adding a series for the xy scatter to work.
    Last edited by itr674; 05-16-2020 at 06:28 PM. Reason: Add Chart

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

    Re: STACKED BAR Chart: is it possible to have a target line without use the XY Scatter met

    The problem of using a line series is 2 fold.

    line series are normal categorical, so a target of non integer value will be difficult
    line series progress across the chart rather than plot specific values like a xy scatter. So under normal circumstances the first point is on the left and the second point on the right of a slope between the two points.

    You could use Y error bar to provide a vertical line at a given category but trying to keep the horizontal category axis used by the line and the numeric horizontal axis used by the stacked bars will be very difficult.

    If you can use VBA you could use the vertical axis line. The VBA would be to position it when the value changes.
    There is a UDF (UserDefinedFunction) in F1.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    10-05-2016
    Location
    NC
    MS-Off Ver
    2016
    Posts
    6

    Re: STACKED BAR Chart: is it possible to have a target line without use the XY Scatter met

    Andy Pope--thank you. I thought it might take a VBA solution. I will see how this works., and thanks again.

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

    Re: STACKED BAR Chart: is it possible to have a target line without use the XY Scatter met

    FYI, the VBA is only required to update the chart automatically rather than actually implement the line.

+ 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. Combining Chart together. One Scatter, one Scatter with Line
    By jp16 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-06-2019, 06:57 AM
  2. How to add target line to a STACKED COLUMN pivot chart
    By vsraghuraman in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-19-2016, 09:07 PM
  3. [SOLVED] Column Chart (Target stacked with Sales and Forecast)
    By TheDirtyZombie in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-03-2015, 08:19 PM
  4. How to add target line to stacked column pivot chart chart
    By oleg mirzaev in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-04-2013, 07:46 AM
  5. [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
  6. Create a Combined Chart for Stacked Area and Scatter
    By PosseJohn in forum Excel General
    Replies: 2
    Last Post: 11-29-2010, 12:53 PM
  7. Combination chart? Stacked cylinders and scatter
    By sdubose99 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-26-2005, 11:26 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