+ Reply to Thread
Results 1 to 3 of 3

Need Vertical Line on XY Scatter Chart

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    Central NY
    MS-Off Ver
    Office 365
    Posts
    19

    Need Vertical Line on XY Scatter Chart

    I have an XY scatter chart showing the relationship between % organic and the retention time of compounds on an HPLC. I have the user select a given % organic on the X axis. I would like to display a vertical line on the chart at the selected % organic on the X axis. I can scale the Y axis to the min/max of the values. So how can I do a combo chart or whatever, to overlay a vertical line to the scale of the chart, at the X axis selected % organic?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Need Vertical Line on XY Scatter Chart

    When i do this, I:

    1) Enter my %organic value in a convenient cell (for convenience, how about X1). Make a copy/link in the cell below X2 =X1
    2) Enter two reasonable values for the Y values of the vertical line. 0 and 10 in Y1 and Y2 (if I assume the retention times are never larger than 10 minutes).
    3) Add these 4 cells as a new data series in the scatter chart (Select Data dialog is often the "easiest" if you are unfamiliar with the strategies for adding data series to a chart). If it isn't obvious, X1:X2 becomes the X values for the new series and Y1:Y2 becomes the Y values for the new series.
    4) Format the new series to look how I want (usually I want no marker, with a solid line in an easily visible color like black or blue or red).

    Will something like that work for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    06-15-2016
    Location
    Central NY
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Need Vertical Line on XY Scatter Chart

    Mr. Shorty,

    Thank you for the fast reply. Brilliant, and it worked perfectly! The X value is input by the user into a cell, and I copy it into two cells. The Y values are the min and max of the data set. I get a perfect line showing the selected % organic drawn to the Y scale of the graph.

    Thanks again!

+ 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. Vertical line in a histogram (vertical bar chart)
    By AdamCPTD in forum Excel General
    Replies: 2
    Last Post: 11-18-2017, 03:04 AM
  3. Scatter Chart Without a Vertical / Y Axis
    By emcichon in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-11-2017, 02:12 AM
  4. Add labels/titles to vertical axis of scatter chart
    By verwater in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-23-2013, 07:19 PM
  5. Straight Vertical and Horizontal line through a single scatter point.
    By jhall488 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-10-2012, 10:06 AM
  6. [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
  7. inserting vertical line into a scatter plot
    By bored in forum Excel General
    Replies: 3
    Last Post: 02-04-2010, 09:48 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