+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    06-14-2007
    Posts
    11

    Adding Value to Screen Tip When Hovering Over Chart Values

    I have a table with Column A = Person’s Name, Column B = Height in Inches, and Column C = Weight in Pounds. I’m able to create a scatter plot where Column B is the X axis and Column C is the Y axis. When I hover the mouse over a data point, the screen tip correctly shows the Column B and Column C values.

    My problem is that I cannot determine how (either through the Chart Wizard or VBA code) to add Column A as a series so that the person’s name is also shown (along with the Column B and Column C values) when I hover the mouse over a point.

    If someone can offer guidance, I would be really appreciative.

    Thanks.

  2. #2
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    In the Chart Wizard, step 3, select Data Labels tab and click the "Label Contains" boxes (3)
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    06-14-2007
    Posts
    11
    Thanks - but I wasn't clear. I want the Column A person's name to appear in the popup screen tip (or whatever it's called) only when the mouse is hovering over the data point - not as a permanent part of the label.

  4. #4
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Is this any better when you hover over the points?
    Attached Files Attached Files
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Registered User
    Join Date
    06-14-2007
    Posts
    11
    Thanks very much for your time.

    The values display perfectly on your chart - just as I want them on mine. But I think the difference (and why it may not be possible with mine) is that I use actual Column B values for the X axis values, while I believe you use some sort of index number. So I don't think I can change my series characteristics to use Column A values for the X asis as you have done.

  6. #6
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    The column A values on the first chart are the row numbers. To create the second chart with the names from column A, I used the Line Chart, but formatted the line to "None", just leaving the points like a scatter chart.

    Does that work for you?
    Attached Files Attached Files
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  7. #7
    Registered User
    Join Date
    06-14-2007
    Posts
    11
    The basic problem, I think, is that in my case the X values are not discrete, but continuous, and so the series they "come from" must be displayed by a scatter plot, not line. That being the case, I don't think I can get your solution to work. Thanks again for all your time - I really do appreciate it.

  8. #8
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Hello Robert,

    If you want to provide a small zipped sample of your worksheet may be I could have a look for you?

    To post a zipped example, go to “My Documents” or wherever you have your file stored, right-click and “Send to > Compressed file”, then attach this zipped file to your post.
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  9. #9
    Registered User
    Join Date
    06-14-2007
    Posts
    11
    Hi,

    I hope the attached picture clarifies more than confuses, so let me explain.

    First, my original posting used an example which I had hoped would reflect my real life situation, but in a way that would be easier for any reader to understand.

    The real situation is a worksheet that is built via VBA based on a subtotaling and copying of four columns of data from another sheet, and displaying detail level 2.

    As you see, column B is used (in 000s) as X values. It’s continuous in nature, not discrete, so the charts are scatter plots rather than line.

    Column C is plotted against the secondary Y axis, with only the trend line being shown (no markers), so it can be ignored for this discussion.

    Column D is plotted using the primary Y axis, with both a trend line and markers. There are only two jobs (column A), so only two markers appear in this example (at the very ends of the blue trend line).

    What I want is for a screen tip (or whatever it’s called) to pop up when the mouse is hovering over a blue marker so that the job title is shown in addition to the Column D value. If the tip also shows the X value (Column B) that would be great – but I would give that up in return for displaying Column A.

    I hope this makes sense.
    Attached Images Attached Images

  10. #10
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    No, I'm sorry Robert, that one's beaten me. Hope someone else may be able to help?
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  11. #11
    Registered User
    Join Date
    06-14-2007
    Posts
    11
    Thanks very much for trying to help. I'm glad, in a sense, that there might not be an obvious answer that I just didn't see. It could be that it's just not possible. Thanks again.

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