Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel scatter graph data labels

Posted on 2014-10-27
11
Medium Priority
?
138 Views
Last Modified: 2014-11-13
I have produced a scatter graph using a macro set up spreadsheet I found on the internet. The problem I have is it labels each point and I have over 200 hundred points so all the names lie on top of each other. I was hoping there would be a way to hover over and then the name appears?
0
Comment
Question by:katewillwin
[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
11 Comments
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40407366
It's probably just a matter of removing the argument/statement that includes the data labels.

If you'll post the code, I'm sure we can help locate and resolve this.

-Glenn
0
 
LVL 7

Expert Comment

by:Brian Matis
ID: 40407374
Not quite sure what labels you're referring to. Axis labels? Labels on the points themselves? In either case, try clicking on one of the labels and hitting the delete key.
0
 
LVL 27

Expert Comment

by:ProfessorJimJam
ID: 40407497
@ KATE

you have two options.

A)  i have attached an example code in a chart object.  see attached file.


B)  you can use the  add-in developed by Tushar Meta  Add-in Called  Chart hover label.  it exactly does what you have described.  
you can download add-in from the link below.  i believe the add-in is for free
http://www.tushar-mehta.com/excel/software/chart_hover_label/
EE.xlsb
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:katewillwin
ID: 40408047
Thanks for the responses.  The macro I downloaded creates the names but as there are so many plots the names lie on top of each other.  I can not get the names to only show when you hover over them.  If you hover over them it only shows the coordinates.

I have attached to hopefully male it clearer.
example-chart.xlsx
0
 
LVL 27

Accepted Solution

by:
ProfessorJimJam earned 2000 total points
ID: 40408184
Kate,

can you check this attachment?
example-chart.xlsm
0
 

Author Comment

by:katewillwin
ID: 40412763
That's amazing, how did you do that?
0
 
LVL 27

Expert Comment

by:ProfessorJimJam
ID: 40412836
I just wrote the below into the chart object vba   and it does the magic :-)


Private Sub Chart_MouseMove(ByVal Button As Long, ByVal Shift As Long, ByVal x As Long, ByVal y As Long)
Dim ElementID As Long
Dim Arg1 As Long
Dim Arg2 As Long


Me.GetChartElement x, y, ElementID, Arg1, Arg2
If ElementID = 3 Then
    ActiveChart.SeriesCollection(Arg1).Points(Arg2).ApplyDataLabels
    ActiveChart.SeriesCollection(Arg1).Points(Arg2).DataLabel.Font.Size = 14
    Z = 0
    For N = 11 To Sheets("Sheet1").Cells(Sheets("Sheet1").Rows.Count, 5).End(xlUp).Row
        If Sheets("Sheet1").Cells(N, 1).Height > 0 Then
            Z = Z + 1
            If Z = Arg2 Then Exit For
        End If
    Next N
    ActiveChart.SeriesCollection(Arg1).Points(Arg2).DataLabel.Text = Sheets("Sheet1").Cells(N, 5)
Else
    On Error Resume Next
    ActiveChart.SeriesCollection(1).DataLabels.Delete
    On Error GoTo 0
End If
End Sub

Open in new window

0
 
LVL 27

Expert Comment

by:ProfessorJimJam
ID: 40423396
katewillwin

i have provided the solution to your question.  please close the question by accepting ID: 40408184
0
 
LVL 27

Expert Comment

by:ProfessorJimJam
ID: 40432185
this question is answered and the answer was accepted by author (see text ID: http:#a40412763) .  however, the author has forgotten to close the question accepting it.  

I recommend closing the question by accepting the ID: http:#a40408184.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

705 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