This is a migrated thread and some comments may be shown as answers.
LineSeries ItemsSource problem Silverlight Chart
1 Answer 43 Views
This is a migrated thread and some comments may be shown as answers.
Dieter
Top achievements
Rank 1
Dieter asked on 17 May 2010, 01:28 PM
Hello

i am doing a evaluation of the Silverlight Char Controls
 
i have a List<decimal[]> with 7 arrays. this is the itemssource for a chart with listseries.
Inside every array there are 210 elements. But the chart is not shown. When i put 10 elements inside every array the chart is shown.
Is there a limitation?

regards
Dieter

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 20 May 2010, 12:52 PM
Hello Dieter,

When the chart is populated with a lot data, as in your example, the visual representation might not be clear.This is why RadChart uses sampling, which combines the items, so that the DataPoints are limited to a specific number, which is 200 by default - this is the default SamplingThershold property of the SamplingSettings. If you need to display all DataPoints, the SamplingThershold should be set to '0' in the following manner :
RadChart1.SamplingSettings.SamplingThreshold = 0;

Please note, that to maximize the performance when dealing with a lot of data disabling the series ItemLabels, Tooltips and PointMarks comes in handy :
LineSeriesDefinition definition = new LineSeriesDefinition();
definition.ShowItemLabels = false;
definition.ShowItemToolTips = false;
definition.ShowPointMarks = false;

For more information on Sampling, please refer to this help topic. Hope this information would be helpful to you.

All the best,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Dieter
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or