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
Solved

Excel scatter graph data labels

Posted on 2014-10-27
11
125 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
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 6

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 26

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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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 26

Accepted Solution

by:
ProfessorJimJam earned 500 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 26

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 26

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 26

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel 2013 Issues 11 45
Frequency distribution of horizontal data? 5 29
Change hyperlink addresses that contain a certain substring using VBA 9 45
Clear a Text Box 7 24
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

856 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