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

Issue with LineSeriesDefinition chart

2 Answers 51 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 21 Nov 2011, 11:52 PM
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 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 24 Nov 2011, 03:07 PM
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 >>

0
Brian
Top achievements
Rank 1
answered on 28 Nov 2011, 06:05 PM
That was it.  Thanks!
Tags
Chart
Asked by
Brian
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Brian
Top achievements
Rank 1
Share this question
or