LineSeries ItemsSource problem Silverlight Chart

2 posts, 0 answers
  1. Dieter
    Dieter avatar
    1 posts
    Member since:
    Jan 2008

    Posted 17 May 2010 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    397 posts

    Posted 20 May 2010 Link to this post

    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.
Back to Top