+ Reply to Thread
Results 1 to 10 of 10

Display information upon mouseOver on a scatter chart

  1. #1
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Display information upon mouseOver on a scatter chart

    Have a workbook setup to display information on Players within a game, so player name, location on map (x, y coords), player rank & note about the player.
    Player coords and their name as well as the note on them are concatenated into one field.

    Cell A1 has PlayerName ie Striker
    Cell B1 has X coords ie 76
    Cell C1 has Y coords ie 202
    Cell D1 has player Level
    Cell E1 note on player
    Cell F1 has Friend or Foe information
    Cell G1 has concatenated information of the previous cells.

    Using A1 as series name
    Series X values are taken from $B$2:$B$300
    Series Y values are taken from $C$2:$C$300

    Cell G has concatenated information from cells B, C, A, D, E & F ie (76, 202) Striker 36 Leader of clan

    Want to use this cell G information as a mouseOver label for each point on scatter chart.

    Chart is displaying information for series correctly, but want to add this feature for the users to see who is at which point on chart.

  2. #2
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Display information upon mouseOver on a scatter chart

    Have worked out how to display the information I need on chart, however it is present for all data points on chart and is extremely messy due to the number on points being displayed. Need it to be only when the user places their mouse over a specific point and have it display that information.

  3. #3
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Display information upon mouseOver on a scatter chart

    messyInfo.jpg

    As can be seen by the snapshot, it get's real messy. So my thinking is that having the information show only when a user moves their mouse over the data point would be better.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Display information upon mouseOver on a scatter chart

    a sample workbook will likely get more help than a picture ;-)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Display information upon mouseOver on a scatter chart

    This is the file I am working on, information in it is not of a critical nature so have no issue uploading the actual file.
    Attached Files Attached Files

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Display information upon mouseOver on a scatter chart

    right-click the sheet tab, choose 'view code' and paste this code
    Please Login or Register  to view this content.
    also add this to the ThisWorkbook module of the workbook
    Please Login or Register  to view this content.
    note: you will need to activate the chart by clicking on it for the code to work

  7. #7
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Display information upon mouseOver on a scatter chart

    Thank you Joseph, but it appears to still not be working. followed your steps and added the VB code but with no result.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Display information upon mouseOver on a scatter chart

    did you reopen the file to trigger the hookChart routine?

  9. #9
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Display information upon mouseOver on a scatter chart

    Got it working now thank you.
    It somehow added twice the following lines
    Public Sub hookChart()
    Set cht = Me.ChartObjects(1).Chart
    End Sub

    Private Sub Worksheet_Activate()
    hookChart
    End Sub

    That code showed up twice when I read through the coding.

    Cudos to you for that, once more thank you for the help.

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Display information upon mouseOver on a scatter chart

    you're welcome :-)

    please don't forget to mark the thread solved (click the 'thread tools' link at the top, then 'mark solved')

+ 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. [SOLVED] Dynamic Charting - Scatter Chart - X-axis doesn't display correct reference
    By 11linc11 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-14-2013, 04:33 PM
  2. scatter chart x axis doesn't display correct values
    By sthegreatone in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-30-2012, 11:07 AM
  3. Mouseover Chart Data Display
    By theceka in forum Excel General
    Replies: 3
    Last Post: 11-21-2010, 06:51 AM
  4. Scatter and Column Chart Display Error
    By taiira in forum Excel General
    Replies: 1
    Last Post: 04-30-2010, 04:29 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