+ Reply to Thread
Results 1 to 2 of 2

How do you link the axis bounds of a scatter graph to a cell? +How to insert target lines?

  1. #1
    Registered User
    Join Date
    12-03-2020
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    1

    How do you link the axis bounds of a scatter graph to a cell? +How to insert target lines?

    I have set up a scatter chart on excel to map 2 columns of data. However, I would like to match the minimum and maximum values each of each axis to the minimum and maximum of their respective columns. This means matching each bound to a single cell. Any ideas as to how to do how to do this? I know that you can just set the bounds to automatic, but I would like to set them to the exact value of the cell (and make it change as the value of the cell changes).

    As a second question, does anyone know how to set up a horizontal target line based on a single cell? I read somewhere that you can use error bars to have the same effect, but the problem is that they have a fixed length. I want to have its length spanning the whole of the displayed x-axis, even if the axis changes. Thanks in advance for any help

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

    Re: How do you link the axis bounds of a scatter graph to a cell? +How to insert target li

    I read somewhere that you can use error bars to have the same effect, but the problem is that they have a fixed length.
    Your version of Excel does not have any of the other error bar options? When I see this done, usually I see one set the error bar length option to percentage and the value to something suitable (like 100%). Perhaps I am not understanding exactly what you are doing, but I would expect if you position the dummy point for your target line correctly and use an error bar length of 100%, you will get a suitably flexible target line.

    As for linking axis limits to cells, this requires VBA (are you allowed to use VBA for this project?). The most complete tutorial I am aware of is Jon Peltier's: https://peltiertech.com/chart-udf-control-axis-scale/
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Trying to change the bounds of the x axis of a line graph
    By Stovasaurus in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-30-2020, 09:28 PM
  2. Excel graph- two bounds on X Axis
    By cindy100 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-23-2019, 08:57 AM
  3. Scatter graph, x axis
    By cardyem in forum Excel General
    Replies: 7
    Last Post: 10-28-2015, 12:50 PM
  4. [SOLVED] VBA for changing the x-axis bounds in a graph
    By lrouquette in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 07:18 PM
  5. No connecting lines in a scatter graph
    By katiemc in forum Excel General
    Replies: 4
    Last Post: 08-08-2014, 05:13 PM
  6. Replies: 2
    Last Post: 04-22-2010, 10:38 PM
  7. Broken Lines on my Scatter Graph
    By chrismann85 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-22-2008, 05:18 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