Made an x-y scatter chart and one of the chart options with the series selected is "display labels". But I don't see any way that I can tell it which column I would like to use for labels, so it is just using the x value. I suppose that could be handy if the graph is hard to read to the precision of the entries and you want someone to be able to see what the exact entry was, but I have a column that has titles that I was hoping to use for labels.
Any way to tell Excel where the labels for data points in a series are?
Running Excel 2004 on a Mac
Thanks,
Brian
Typically labels are located directly above or to the left of the data. Will that work for you? If so, select the data range including those labels.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
The only built-in label options for xy-scatter are x value, y value or Series Name.
If you have a few points you could create a series for each point and display the series name.
The only other way is to use custom text for each data label.
On a PC this can be acheived by using the free addin XY Labeler.
Not sure about the Mac.
add-in allow you to select a range of cells for labels equivalent in length and orientation to the range of cells chosen to create the xy scatter, or do you have to go one point at a time.
If you can do it quickly with a range it would be worth it to me to move over and work on the PC if I can't find a similar add-in for a mac.
I'm kind of surprised that that kind of an option is not native in Excel. Usually if they allow you to label something, you have better address for custom labels.
Is this any different in Excel 2007?
Brian
The addin allows you to select a range for each point in the series.
Linking custom data labels is indeed a big ommission from ALL version of Excel.
The add basically automates this set of actions.
Select a series
apply data labels
select data labels
select specific data label
in formula bar enter full address of cell containing label, e.g. =Sheet1!A1
The data label should now display contents of cell. Repeat for all data labels.
Some very simple code which does the basic linking would be
Sub LinkDataLabels() Dim chtTemp As Chart Dim rngLabels As Range Dim lngIndex As Long Set rngLabels = ActiveSheet.Range("C2:C5") Set chtTemp = ActiveSheet.ChartObjects(1).Chart With chtTemp.SeriesCollection(1) .HasDataLabels = True For lngIndex = 1 To .Points.Count .Points(lngIndex).DataLabel.Text = "='" & rngLabels.Parent.Name & "'!" & rngLabels.Cells(lngIndex).Address(, , xlR1C1) Next End With End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks