+ Reply to Thread
Results 1 to 3 of 3

How to plot a horizontal line ALL the way across a column chart?

  1. #1
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Herndon, VA
    MS-Off Ver
    Excel 2010
    Posts
    163

    How to plot a horizontal line ALL the way across a column chart?

    I have a data series plotted as columns. Then I want a horizontal line at $5,000 to appear all the way across the chart. It appears from the 1st to the last data point, but there is blank space before the first point and after the last point. I would like the red line to extend into this blank space before and after, so that it is going across the entire chart.

    Is this possible? I tried playing around with different axis settings and no luck.

  2. #2
    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,939

    Re: How to plot a horizontal line ALL the way across a column chart?

    Add the 5000 as a new range, and put the 500 in the 1st and last cells of that range
    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

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

    Re: How to plot a horizontal line ALL the way across a column chart?

    You need to move the line series to the secondary axis.
    Then add secondary horizontal axis and set Crosses at tickmarks.

    You can delete the secondary value axis and format the secondary category axis so it has no labels or tickmarks showing
    Cheers
    Andy
    www.andypope.info

+ 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. Adding horizontal line to VBA column chart
    By the_adam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2013, 09:56 AM
  2. Replies: 2
    Last Post: 11-27-2012, 01:25 PM
  3. Horizontal reference line in a scatter plot
    By scannerdarkly in forum Excel General
    Replies: 1
    Last Post: 03-30-2012, 11:21 AM
  4. Replies: 5
    Last Post: 05-10-2010, 09:49 AM
  5. Overlaying a line plot on top of a column chart
    By ze_dutch in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-15-2008, 06:41 AM

Tags for this Thread

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