Solved

Excel scatter graph data labels

Posted on 2014-10-27
11
130 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 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

732 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