LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default data labels in xy scatter

In the next column, construct the text of the desired labels. An example
formula would be

=A2&CHAR(10)&B2&CHAR(10)&C2

where CHAR(10) is a carriage return. Use these constructed labels as the
data labels.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"M John" wrote in message
...
John,
I have created the macro (which works beautifully) and want to know if the
following is possible:

For an x-y chart with the following points:

x y
A 1 5
B 2 10
C 3 12
D 4 30

Is it possible to get the data label for each point in the graph to read:
(for C, as an example)

C
3
12

Many thanks,
M John







"John Mansfield" wrote:

kbpratt,

In addition to Rob's XY Chart Labeler addin, you can also use the
following
macro:

Sub AddLabels()
Dim RngLabels As Range
Dim Ser As Series
Dim i As Long
If TypeName(Selection) = "Series" Then
Set Ser = Selection
Set RngLabels = Application.InputBox(prompt:="Select the label
range:", Type:=8)
Ser.HasDataLabels = True
For i = 1 To Ser.Points.Count
Ser.Points(i).DataLabel.Text = RngLabels(i)
Next i
Else
MsgBox "Select a series in a chart."
End If
End Sub

In the dialog box, add the reference to the data source like
"Sheet1!A1:A5".

----
Regards,
John Mansfield
http://www.pdbook.com


"kbpratt" wrote:

Hello-

Is there any way to label individual points in an XY scatter with data
from
ajdacent cells? For exampl, I have 3 columns with a name, an x value
and a y
value. I want to plot points with the XY data and label each point
with the
names from the first column. Seems simple but I can't figure it out



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple scatter graphes how to plot 3 sets of data for x y on th. frances Charts and Charting in Excel 3 May 2nd 23 11:42 AM
Charting data ranges that change mikelee101 Charts and Charting in Excel 2 December 16th 04 11:07 PM
Help with pivot charts and data labels [email protected] Charts and Charting in Excel 1 December 15th 04 03:08 PM
How many data points can you have in an Excel for a Scatter Chart. gregran Charts and Charting in Excel 3 December 10th 04 07:31 PM
Individual labels to data point in Excel charts Sverre Rolseth Charts and Charting in Excel 2 December 8th 04 12:55 PM


All times are GMT +1. The time now is 08:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"