Issue with LineSeriesDefinition chart

3 posts, 0 answers
  1. Brian
    Brian avatar
    73 posts
    Member since:
    Sep 2010

    Posted 21 Nov 2011 Link to this post

    Please see the two attached screen shots.  Both of these graphs are built using the same data points.  However, the Telerik version of this graph, which is seen in the telerik.jpg attached image, does not have the same marked data points as the other.  It seems like the LineSeriesDefinition object is doing some sort of smooting on the data rather than marking each individual point.  You can see specific examples of this by comparing the areas I circled in red.

    What are we doing wrong?

    Tks.
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    1029 posts

    Posted 24 Nov 2011 Link to this post

    Hi,

    You are not doing anything wrong.
    This is a feature of the RadChart called Sampling. You can read about it here.

    To improve performance when working with a huge number of items the RadChart combines (clusters) some of the items. It combines some items with close values and shows them as a single DataPoint (with average estimates for the X and Y).

    You have control of how many DataPoints will be visualized by setting the SamplingThreshold property. (By default it is 200).

    In your case you might need to fully disable Sampling. To disable Sampling you need to set the SamplingThreshold to 0.

    <telerikChart:RadChart x:Name="radChart">
        <telerikChart:RadChart.SamplingSettings>
            <telerikCharting:SamplingSettings SamplingThreshold="0" />
        </telerikChart:RadChart.SamplingSettings>
    </telerikChart:RadChart>

    I hope this helps.

    Best wishes,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Brian
    Brian avatar
    73 posts
    Member since:
    Sep 2010

    Posted 28 Nov 2011 Link to this post

    That was it.  Thanks!
Back to Top