A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel ScatterPlots



 
 
Thread Tools Display Modes
  #1  
Old June 27th, 2007, 07:59 PM posted to microsoft.public.excel.charting
[email protected]
external usenet poster
 
Posts: 1
Default Excel ScatterPlots

I am graphing data points in a scatter plot. Some of the data points
are repeats throughout the data set.

Is there any way to make the size of the dots (data points on the
graph) that I am using depend upon the number of same data points I
have in my data set?

I want the graph to be able to reflect that some points are repeated
many times, not just a single point like all the others.


Thanks!

  #3  
Old July 2nd, 2007, 02:20 AM posted to microsoft.public.excel.charting
John Mansfield
external usenet poster
 
Posts: 218
Default Excel ScatterPlots

If you're willing to use a macro, the procedure below will flag any
duplicates. Copy the macro into a standard module. Click on the XY chart
and run the macro.

Sub ShowXYDuplicatePoints()

Application.ScreenUpdating = False

Dim Cht As Chart
Dim Srs As Series
Dim Pt As Points
Dim nPts As Long, iPt As Long
Dim Test As Variant
Dim UniqueValues As New Collection

Set Cht = ActiveChart

For Each Srs In Cht.SeriesCollection
With Srs
nPts = .Points.Count
For iPt = 1 To nPts
Test = Srs.XValues(iPt) & Srs.Values(iPt)
UniqueValues.Add Acct, CStr(Test)
On Error GoTo ErrHandler:
If iPt + 1 nPts Then
ActiveChart.Deselect
Exit Sub
End If
Label1:
Next
End With
Next Srs

ErrHandler:
Srs.Points(iPt).MarkerSize = 10
Srs.Points(iPt).MarkerBackgroundColorIndex = 3
Srs.Points(iPt).MarkerForegroundColorIndex = 3
If iPt + 1 nPts Then
ActiveChart.Deselect
Exit Sub
End If
Resume Label1:

End Sub

--
John Mansfield
http://cellmatrix.net





" wrote:

I am graphing data points in a scatter plot. Some of the data points
are repeats throughout the data set.

Is there any way to make the size of the dots (data points on the
graph) that I am using depend upon the number of same data points I
have in my data set?

I want the graph to be able to reflect that some points are repeated
many times, not just a single point like all the others.


Thanks!


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.