SplineSeriesDefinition Drawing

2 posts, 0 answers
  1. Joel Palmer
    Joel Palmer avatar
    175 posts
    Member since:
    May 2009

    Posted 15 Feb 2011 Link to this post

    I have a chart as defined below.  I get a TrendCollection, which is an Observable collection also defined below:

    This trend is supposed to display hourly data of one Tag.  When I display 7 days worth of data (Collection of 168 values)
     the chart acts badly.  The lines don't connect to each other and large gaps in the lines are there which makes the line useless.
    When I display 5 days worth (120 values), it displays correctly.  Am I expecting too much of this control? 
    Shouldn't it be able to handle this number of values?

    I have attached pictures of the 7 day and of the 5 day.

    private ObservableCollection<TagHistoryDD> _trendCollection =
        new ObservableCollection<TagHistoryDD>();
    public ObservableCollection<TagHistoryDD> TrendCollection
        get { return _trendCollection; }
            _trendCollection = value;

    telerik:RadChart x:Name="chart" 
        Grid.Row="3" Margin="10,0,0,0"
        ItemsSource="{Binding TrendCollection}">
                                Member="Timestamp" />
                    <telerik:ItemMapping FieldName="Timestamp"
                           DataPointMember="XValue"  />
                    <telerik:ItemMapping FieldName="Value"
                           DataPointMember="YValue" />
                    <telerik:ChartArea FlowDirection="LeftToRight" >
                            <telerik:AxisX IsDateTime="True"
  2. Ves
    Ves avatar
    2926 posts

    Posted 18 Feb 2011 Link to this post

    Hi Joel,

    I created a small example, based on the code provided and it worked correctly for me. You can find it attached along with a screenshot. Please, give it a try and let me know if I have missed anything.

    Best regards,
    the Telerik team
Back to Top