+ Reply to Thread
Results 1 to 4 of 4

add horizontal lines to stock chart

  1. #1
    Forum Contributor
    Join Date
    08-03-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    120

    add horizontal lines to stock chart

    Hi guys,
    I have got several stock charts on my excel file in the same sheet. To each of those stock charts I want to add 8 horizontal lines whose y-axis values are derived from A1, B1, C1, D1, E1, F1, G1, H1. If the horizontal line is greater or lower than the highest point or lowest point in the stock chart then I want it to be ignored. At the same time I want to delete all the grid lines in the stock charts. Does anyone have a macro for this?

  2. #2
    Registered User
    Join Date
    11-05-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: add horizontal lines to stock chart

    You should upload a sample workbook with the data, as this will make it easier to help you

  3. #3
    Forum Contributor
    Join Date
    08-03-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    120

    Re: add horizontal lines to stock chart

    Booking.xlsx I have attachd an example to make things clearer. Please ask me if you have any further questions. Thanks.

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

    Re: add horizontal lines to stock chart

    the stock chart will not combine with another chart type that will allow you to draw the lines.

    What you can do is build your own stock chart by using HiLo lines and Up/Down bars. Remove the actual line series formatting.
    You can now add a xy-scatter series to the secondary axis and draw required lines.
    Attached Files Attached Files
    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. Horizontal bar chart with target lines
    By golfoscar in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-08-2014, 03:57 AM
  2. Add Horizontal line to stock chart
    By 4dplane in forum Excel General
    Replies: 6
    Last Post: 12-19-2012, 08:51 PM
  3. problem with horizontal lines in chart
    By Meenie in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-17-2009, 01:06 AM
  4. Adding a horizontal line to a stock chart
    By wittmaennle in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-21-2006, 03:20 AM
  5. Horizontal lines in waterfall chart
    By Tim in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-09-2005, 07:05 PM

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