+ Reply to Thread
Results 1 to 8 of 8

Splitting data in a bubble scatter chart

  1. #1
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Splitting data in a bubble scatter chart

    I have a table of data and a bubble chart of the data for mass distribution. x position to X, y position to Y and mass to bubble size.
    The table has a field for type code (electrical, fittings, structure, etc).
    I want to colour the bubbles based on type code. initially I thought of using a pivot table but bubble charts aren't available in pivots, so I tried making a series for each type and put a formula in the bubble size
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to make the series return 0 sized bubbles for items not in the type but it won't accept the formula.

    Any ideas on how to do this without adding helper columns for each type code?
    Sub Reputation()
    Dim Problem as Variant
    Dim Reputation as Integer
    For Each Problem in Forum.Threads
        If Problem.Title = "*[Solved]*" and Solver.Name = "Leon V (AW)" Then Reputation = Reputation + 1
    Next Problem
    End Sub

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,615

    Re: Splitting data in a bubble scatter chart

    If you want to avoid helper columns, why not use names (Ctrl+F3) (but not with ranges but with formulas)?
    Then names could be used in series
    And as a formula I'd rather use IF(...="Elec",mass,"")
    Hope it's clear. If not - use a hint from the yellow bar above.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Splitting data in a bubble scatter chart

    Ok so technically that has worked but it lags the document out like mad.
    It also won't let me input the named range in the series formula bar. Only in the api weirdly.

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

    Re: Splitting data in a bubble scatter chart

    I'm not surprised that a SUMPRODUCT() type of approach would lag the document -- that approach would introduce a lot of duplicated effort.

    My first thought for "conditional formatting" of a chart data series is this approach: https://peltiertech.com/conditional-...-excel-charts/ Obviously for a bubble chart you need two helper columns for each data series rather than one. Otherwise, I would expect it to be straightforward to program in the spreadsheet and to calculate/update very quickly.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,615

    Re: Splitting data in a bubble scatter chart

    I hope @Leon V (AW) have followed my suggestion and used IF not SUMPRODUCT with defined names.
    If not, then indeed SUMPRODUCT could lead to slowing down the workbook

  6. #6
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Splitting data in a bubble scatter chart

    I have used IF to set the named range.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It is still pretty damn crunchy. It tends to just freeze up for a few seconds every minute or so (but with no calculating in notification bar. I assume dynamic named ranges don't push that message.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,615

    Re: Splitting data in a bubble scatter chart

    Too bad. It will probably not improve even if you give up and do the same calculation in helper columns :-(
    Is the dataset so large? Or may be some other formulas slow down the workbook?

  8. #8
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Splitting data in a bubble scatter chart

    It's a full bill of materials so the dataset isn't small but it isn't huge either.
    depending on configuration it's between 15000 and 25000 parts.
    there are other formulas on the doc but they are all just in line formulas volume*density, CG*mass, that sort of stuff and then the table totals row sums.
    Do you think changing it from a workbook named range to a worksheet named range would have any effect?

+ 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. Replies: 12
    Last Post: 01-29-2020, 05:40 AM
  2. Bubble chart / scatter plot problem
    By diamond chap in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-24-2019, 04:01 PM
  3. Scatter/Bubble chart for Financial Trend with multiple series
    By Raviprasad.k in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-16-2018, 11:37 AM
  4. Bubble or Scatter chart
    By vjharry in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-08-2015, 04:06 PM
  5. Replies: 1
    Last Post: 06-18-2014, 04:32 PM
  6. Edit bubble behind another bubble in bubble chart (2007)
    By JayUSA in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-14-2009, 03:10 PM
  7. Convert scatter chart to bubble chart
    By JayUSA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2009, 01:49 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