Solved

pie charts inside a bubble chart

Posted on 2011-03-09
5
2,423 Views
Last Modified: 2012-06-21
I have a bubble chart (see attached file). I want to display the split between "complex" and  "standard" percentages (Column "F" and "G").  Is it possible to display pie charts inside this bubble charts?
Book1.xls
0
Comment
Question by:fitaliano
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 33

Expert Comment

by:jppinto
ID: 35087494
It's not possible to do that. I would suggest that you make a pie chart and put on top of the bubble chart, on a corner, like a "zoom" of the data to show the split...that's the only solution I can think of...

jppinto
0
 
LVL 15

Accepted Solution

by:
CSLARSEN earned 500 total points
ID: 35087649
Hi
It is not easy but I have used this with success.
http://www.ozgrid.com/Excel/pie-data-mark.htm
cheers
cslarsen
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 35088357
Hello,

You could create your pie charts separately, copy the pie charts as pictures and use these pictures to format each individual bubble with a picture fill from Clipboard.

This will retain the pie chart when the bubble changes position.

It will also grow or shrink with the bubble size.

But the image fills within the bubble chart are not dynamic, so if the pie charts change, you will need to re-do the image fill for the bubbles.

There's probably a way to store the images to disk and have them updated automatically via VBA and then connect each bubble with a specific image on disk.

See attached file for an implementation of the manual approach created with Excel 2010

cheers, teylyn
Book2.xlsx
0
 

Author Comment

by:fitaliano
ID: 35089089
Thank you cslarsen,

it is the right solution.  I don't think I am getting the code right though. Could you help me out?

This my code (the updated file is attached:

Sub PieMarkers()
     
    Dim chtMarker As Chart
    Dim chtMain As Chart
    Dim intPoint As Integer
    Dim rngRow As Range
    Dim lngPointIndex As Long
     
    Application.ScreenUpdating = False
     ' reference to pie chart
    Set chtMarker = ActiveSheet.ChartObjects("chtPieMarker").Chart
     ' reference to chart that pie markers will be applied to
    Set chtMain = ActiveSheet.ChartObjects(1).Chart
     
     ' pie chart data which will be processed by rows
    For Each rngRow In Range("A1:D6").Rows
         ' assign new values to pie chart
        chtMarker.SeriesCollection(1).Values = rngRow
         ' copy pie
        chtMarker.Parent.CopyPicture xlScreen, xlPicture
         ' paste to appropriate data point
        lngPointIndex = lngPointIndex + 1
        chtMain.SeriesCollection(1).Points(lngPointIndex).Paste
    Next
     
     ' release objects
    Set chtMarker = Nothing
    Set chtMain = Nothing
    Application.ScreenUpdating = False
     
End Sub

Book2.xls
0
 
LVL 15

Expert Comment

by:CSLARSEN
ID: 35092248
Hi f,
Ok, you have switched the name of the marker-chart and the bubble chart
(Chart 3 in the original example.)

Check this example
cheers
cslarsen
Thx for the grade
Piechart-bubble.xls
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lookup - Vlookup 9 49
Color a cell based on a date in Excel 8 23
how to insert the  calendar comtrol for excel cell 10 23
Excel with two IF statements 3 11
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question