Graph not looking right

2 posts, 0 answers
  1. Alex
    Alex avatar
    34 posts
    Member since:
    Jun 2009

    Posted 27 Mar 2012 Link to this post

    I have a large amout of data displayed in a graph.  The probelm I'm having is that I'm not getting the graph that I expect, it's like that radgraph is smothing everything out by taking a average or something, I don't want everything smoothed out.  I want the jagged lines.  When I zoom in it looks like all the data is there, it gets jagged, but zoomed out I get somthing that dosn't look right.
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 30 Mar 2012 Link to this post

    Hi Alex,

    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 need to fully disable Sampling. To disable Sampling you need to set the SamplingThreshold to 0.

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

    I hope this helps.

    All the best,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top