+ Reply to Thread
Results 1 to 9 of 9

VBA XYScatter chart with multiple variable series

  1. #1
    Registered User
    Join Date
    02-17-2022
    Location
    Spain
    MS-Off Ver
    365 MSO 64 bits
    Posts
    11

    Question VBA XYScatter chart with multiple variable series

    Hi, I am quite new to VBA and I have been watching tutorials and reading forums without any clear answer... here is my problem:

    I have a variable number of series (represented in columns side-by-side as) and each one contains a distinct x and y value.

    Also, for each serie there's a number variable of data, so in Series1 there're 100 full rows and Series2 88 full rows, and so on in other series.

    In order to get a graphical view of the location of each of the values I want to insert them all into a plot. I know it should be a xlXYScatter plot, but for me it would be ideal if all the values represented were equal in shape as is the case with xlBubble (although the z-dimensional value should be equal in all cases).

    I have managed to make the XYscatted plot with only one set of values, and I don't know how to add some more...
    Can it be programmed in such a way that it goes series by series (variable) and keeping always all the values represented with the same style?

    Please Login or Register  to view this content.
    Many thanks!

    Ramon
    Last edited by Ralar; 02-18-2022 at 09:14 AM. Reason: Solved

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: VBA XYScatter chart with multiple variable series

    When you say equal in shape, you mean in terms of shape or color as well? Also, is the second series in columns D and E?
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    02-17-2022
    Location
    Spain
    MS-Off Ver
    365 MSO 64 bits
    Posts
    11

    Re: VBA XYScatter chart with multiple variable series

    Yes, what I really want is something close to this:
    Attachment 768761

    This chart is generated with a bubble chart by manually adding the data. Selecting as dimensional value z a single value so that all have the same size.
    (There're different thickness because values are close one to others)

    And my data is like:
    Attachment 768762

    Yes, the rows are B/C/D/E/F/G...
    Cheers
    Last edited by Ralar; 02-17-2022 at 11:48 AM.

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: VBA XYScatter chart with multiple variable series

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-17-2022
    Location
    Spain
    MS-Off Ver
    365 MSO 64 bits
    Posts
    11

    Re: VBA XYScatter chart with multiple variable series

    Hello sourabhg98 ! That's exactly what I was trying to do!

    Many thanks!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,231

    Re: VBA XYScatter chart with multiple variable series

    Administrative Note:

    @Ralar

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    02-17-2022
    Location
    Spain
    MS-Off Ver
    365 MSO 64 bits
    Posts
    11

    Re: VBA XYScatter chart with multiple variable series

    Hello! What about If I want to change the initial position to an other cell (as the first data of Series)? ex:L26

    Thanks!

    Ramon

  8. #8
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: VBA XYScatter chart with multiple variable series

    Change 'stCell' to suit. Also, stCell here must represent the first cell of the header row not the data row.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-17-2022
    Location
    Spain
    MS-Off Ver
    365 MSO 64 bits
    Posts
    11

    Re: VBA XYScatter chart with multiple variable series

    Wow that's perfect!

    Many thanks sourabhg98 !

+ 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. Last Date Label on X-Axis Not Showing on XYScatter Chart
    By bjm286 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-15-2021, 03:17 PM
  2. Replies: 2
    Last Post: 02-19-2017, 07:52 PM
  3. [SOLVED] Show labels on XYScatter Chart ?
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-24-2014, 11:52 PM
  4. Problem setting transparency by VBA in XYScatter chart
    By itbcvdw in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-20-2013, 08:32 AM
  5. Create XYScatter Chart
    By knightcloud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2011, 03:26 AM
  6. How to use a variable for a series in a Chart
    By fugima in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-26-2011, 05:41 AM
  7. problem with min scale property using xyscatter chart
    By sagarsourav in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-31-2007, 03:04 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