Scatter Series Maximum Number of Values

3 posts, 0 answers
  1. Daniel
    Daniel avatar
    2 posts
    Member since:
    Jan 2012

    Posted 21 Jan 2012 Link to this post

    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. Randy Minder
    Randy Minder avatar
    20 posts
    Member since:
    Aug 2009

    Posted 23 Jan 2012 Link to this post

    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>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    2 posts
    Member since:
    Jan 2012

    Posted 23 Jan 2012 Link to this post

    Thanks very much, that fixed it!
Back to Top