Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel XY Scatter Chart 1

Status
Not open for further replies.

KenWright

Technical User
Mar 22, 2003
3,688
GB
Anyone know if I can have an XY scatter chart based on data such as the following

Desc x y
---------
aa 2 4
bb 3 5
cc 1 5
dd 3 6
ee 3 6
ff 3 7
gg 7 3
hh 6 4

have it plot those points but also let me display all the Desc tags against the appropriate records on the chart?

<I hate charts!!!>

Any help would be much appreciated, even if just to tell me I can't do it.

Cheers
Ken........

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
Use the line chart instead, select "line with markers @ each data value" from chart sub type. Then format the series to display only the markers.
 
Thanks ETID, I'll try that. I should also have done a search on Google before posting :-(

There are a couple free utilities you can download to make this task easy.

Rob Bovey's Chart Labeler, John Walkenbach's Chart Tools,
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
_______

Regards
Ken...............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
Ken,

If Line Chart positions your x,y points using Category logic, try switching BACK to x-y scatter and running a procedure like this...
Code:
Sub AddLabels()
   r = 2
   With ActiveSheet.ChartObjects(1).Chart
      For Each pt In .SeriesCollection(1).Points
         With pt
            .HasDataLabel = True
            .DataLabel.Text = Cells(r, 1).Value
         End With
         r = r + 1
      Next
   End With
End Sub
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top