+ Reply to Thread
Results 1 to 6 of 6

Overlapping Circles on Scatter Chart overlaps labels

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Overlapping Circles on Scatter Chart overlaps labels

    How does one fix labels that overlap when multiple circles on a scatter plot sit on top of one another? See attached image as example.
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Overlapping Circles on Scatter Chart overlaps labels

    Can you click the series name (labels), and drag into a better position?

    Or, right click the labels, and format legend should appear.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Overlapping Circles on Scatter Chart overlaps labels

    Edit: Disregard, misunderstood

  4. #4
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Overlapping Circles on Scatter Chart overlaps labels

    I cannot click and move them. They are in the center of the circle for all circles. I was wondering if there was a way where it does it automatically or if a VBA macro can move them for me.

  5. #5
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Overlapping Circles on Scatter Chart overlaps labels

    I attached an example of the file.
    Attached Files Attached Files

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

    Re: Overlapping Circles on Scatter Chart overlaps labels

    I feel like I have seen a VBA macro that does this, but I cannot find it now -- assuming I didn't dream it.

    I did find this discussion https://www.excelforum.com/excel-pro...ervention.html The basic idea is to add an additional data series (formatted to be invisible except for the data label), then attach the data labels to that series. Figure out exactly how you want to determine suitable data label positions, then program those formulas into the spreadsheet cells for the extra data series. Adding a data series, formatting it as invisible, and attaching data labels (removing from existing data series) should all be straightforward on a bubble chart like this. The hard (part especially if you expect it to be fully automated) is to come up with a suitable algorithm that fills in Y (and/or X) values for positioning the labels.

    My older version doesn't have the support for data labels that yours does, but here's what I did to approximate it:

    1) Add two columns to the data table.
    2) In column AG, enter Y values for positioning the data label. In this case, I used something simple like =AD28+COUNTIFS(AD$28:AD28,AD28,AC$28:AC28,AC28)-1 to choose the Y position of each data label point. Note that I used regular A1 notation because I don't know how to get structured table references to have the correct combination of relative and absolute references. The basic algorithm is to move each duplicate x,y pair entry up one unit on the chart.
    3) Something like =SIGN(Table2[[#This Row],[Bubble - Cost]]) to get a small bubble size for appropriate points.
    4) Deleted the data labels from the first data series. Added appropriate data labels to the second series (I could only add series name or Y value or similar, but it should work for values from cells, too).
    5) Format this series to have no fill so it effectively becomes invisible except for the data label.

    Would 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.

+ 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. [SOLVED] Fix data labels overlapping in line chart
    By PaulM100 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2020, 09:27 AM
  2. Scatter Graph - Overlapping Data Labels
    By welshlion26 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 01-17-2020, 06:50 AM
  3. Data Labels overlapping in XY Scatter chart
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2018, 12:25 PM
  4. [SOLVED] Overlapping Time Intervals - Formula to Show Start Overlaps
    By ARec3 in forum Excel General
    Replies: 3
    Last Post: 10-16-2017, 09:13 AM
  5. Pivot Chart Overlapping Axis labels
    By unsalted in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-22-2015, 08:44 PM
  6. Legend overlaps a complex Scatter Chart
    By bhcpittpa in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-09-2013, 04:06 PM
  7. Data labels on scatter chart
    By rmellison in forum Excel General
    Replies: 3
    Last Post: 10-18-2005, 11:05 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