+ Reply to Thread
Results 1 to 5 of 5

Thread: Clickable Bubble chart and drilldown

  1. #1
    Registered User
    Join Date
    05-19-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Clickable Bubble chart and drilldown

    Hi guys,

    Let's keep it simple, I have been looking everywhere on the internet but impossible to find a tutorial on how to do the following

    I have a worksheet with one bubble chart and one bar chart.

    The bubble chart shows 50 bubbles, each representing a country. X-value is the poverty rate, Y-value is the average income per capita and the size of the bubble is the population.

    The bar chart is the evolution in time of the population from 2000 to 2010.

    I would like to link both graphs, so that when I click on a bubble (a country) in my bubble chart, the bar chart shows the evolution of the population for this country. So basically what I need is a vba function that would return the name of the country when I click on a bubble. And the rest should work with a dynamic range and a vlookup... but how to return the name of the country by clicking on the bubble chart???

    Thanks in advance for your help

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,564

    Re: Clickable Bubble chart and drilldown, feasible?

    Hi,

    Does the file mentioned in Jon Peltier's solution help you? See..

    http://peltiertech.com/Excel/Charts/ChartIndex.html

    and scroll down to Chart Events.

    It will help you identify the point and from there you can no doubt work out the country.

    HTH
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Registered User
    Join Date
    05-19-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Clickable Bubble chart and drilldown, feasible?

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Does the file mentioned in Jon Peltier's solution help you? See..

    http://peltiertech.com/Excel/Charts/ChartIndex.html

    and scroll down to Chart Events.

    It will help you identify the point and from there you can no doubt work out the country.

    HTH
    Thanks Richard,

    It is definitely a perfect beginning. However, it seems that the file is not working properly: on the "data and charts" worksheet, only the second chart in the left part (the one with numbers in red) seems to work perfectly and gives the x-y coordinates. I work with Excel 2007, could it be the cause of this problem? Or did Jon Peltier only code for this chart and no for the other five?

  4. #4
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,564

    Re: Clickable Bubble chart and drilldown, feasible?

    Hi,

    Yes it does appear to be a 2007 anomaly. I've tried it on 2003 and the message box containing all the information pops up on all the charts. I've looked at the code and it's not immediately obvious to me why the different treatment. If Andy Pope (the resident chart guru) doesn't spot this thread and respond it may be worth sending a message to him, mentioning this thread, and asking if he'd mind responding in the forum. I don't think this breaks the spirit of forum rule 4.

    Rgds
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,349

    Re: Clickable Bubble chart and drilldown, feasible?

    Can you post example of your workbook.
    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)

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