+ Reply to Thread
Results 1 to 3 of 3

Scatter Chart Boundaries

  1. #1
    Registered User
    Join Date
    02-01-2005
    Posts
    62

    Question Scatter Chart Boundaries

    Not even sure how to explain this, but I'm going to give it a shot. I'm fairly confident in my VBA skills, but I'm not sure on the methodology to get what I'm after.

    I'm trying to determine the points on a scatter graph that define the boundaries of that scatter graph.

    An example might help illustrate by issue. I have the following 12 points:

    1: 0, 1.5
    2: 1, 5
    3: 2.5, 5.5
    4: 3, 6.2
    5: 4, 5.5
    6: 5.5, 5.8
    7: 5.2, 2.5
    8: 7, 0.3
    9: 3, 2.5
    10: 4.3, 1
    11: 2.5, 0
    12: 1.5, 1.3

    If you graph them, you can visually see that points 1, 2, 4, 6, 8, 11 and back to 1 define the area.
    scatter graph example image

    So how do I do that? Any help would be greatly appreciated.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Scatter Chart Boundaries

    Does the attached help.

    It uses Data Filter Advanced to output all the plot points which have >= n-2 neighbouring co-ordinates for each of the x & y co-ordinates. Where n = the number of plots

    i.e There are always at least 4 which are identified by the maximum and minimum co-ordinates. Then there could in theory be an infinite number of other points. These are any points where there are at least n-2 neighbours. In this example these are points 2 & 6.

    HTH
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Scatter Chart Boundaries

    VBA solution. Set the TightFit property to true.

    http://www.andypope.info/charts/convexhull.htm
    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)

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