This is a migrated thread and some comments may be shown as answers.

Scatter Series Maximum Number of Values

2 Answers 115 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 21 Jan 2012, 04:28 PM
Hi,

I have set up a RadChart with a ScatterSeriesDefinition. I am then setting the ItemsSource from the code, by passing it an ObservableCollection<> which holds a custom object called Coordinate, which is essentially just an object that stores an X value and a Y value.

My problem is, there is probably about 1000 Coordinate's in the ObservableCollection, yet only about 200 of them are being displayed on the Chart. 

Is there a limit to the number of points that this type of chart can hold in one series? Or am I doing something wrong?

Thanks

2 Answers, 1 is accepted

Sort by
0
Randy Minder
Top achievements
Rank 1
answered on 23 Jan 2012, 03:27 PM
By default, RadChart uses a "Sample" size of 200 (Sampling is discussed in the RadChart documentation). You can change this, or eliminate it, by setting it to zero. This is the way I do it in XAML.

<!-- By default, RadChart uses a 200 point sampling. Turn this feature off -->
<chart:RadChart.SamplingSettings>
   <charting:SamplingSettings SamplingThreshold="0"/>
</chart:RadChart.SamplingSettings>
0
Daniel
Top achievements
Rank 1
answered on 23 Jan 2012, 03:34 PM
Thanks very much, that fixed it!
Tags
Chart
Asked by
Daniel
Top achievements
Rank 1
Answers by
Randy Minder
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Share this question
or