Creating SeriesMapping dynamic

2 posts, 0 answers
  1. siva
    siva avatar
    12 posts
    Member since:
    Nov 2010

    Posted 04 Apr 2011 Link to this post

    I am using Silverlight RadChart for adding series dynamic based grouping two columns. My collection contains 4 columns
    shown below

     

     

    List<Data> tempdata = new List<Data>()

     

     

    {

     

     

     

    new Data { CName = "CN_0", RName = "Europe" , MTimeStamp = DateTime.UtcNow.AddMinutes(-20), Value = 10 * i },

     

     

     

     

    new Data { CName = "CN_0", RName = "Europe" , MTimeStamp = DateTime.UtcNow.AddMinutes(-18), Value = 8 * i },

     

     

     

     

    new Data { CName = "CN_0", RName = "Europe" , MTimeStamp = DateTime.UtcNow.AddMinutes(-15), Value = 12 * i },

     

     

     

     

    new Data { CName = "CN_0", RName = "Europe1" , MTimeStamp = DateTime.UtcNow.AddMinutes(-10), Value = 13 * i },

     

     

     

     

    new Data { CName = "CN_0", RName = "Europe1" , MTimeStamp = DateTime.UtcNow.AddMinutes(-8), Value = 7 * i },

     

     

     

     

    new Data { CName = "CN_1", RName = "Europe" , MTimeStamp = DateTime.UtcNow.AddMinutes(-20), Value = 9 * i },

     

     

     

     

    new Data { CName = "CN_1", RName = "Europe" , MTimeStamp = DateTime.UtcNow.AddMinutes(-18), Value = 8 * i },

     

     

     

     

    new Data { CName = "CN_1", RName = "Europe" , MTimeStamp = DateTime.UtcNow.AddMinutes(-15), Value = 10 * i },

     

     

     

     

    new Data { CName = "CN_1", RName = "Europe1" , MetricDateTimeStamp = DateTime.UtcNow.AddMinutes(-10), Value = 12 * i },

     

     

     

     

    new Data { CName = "CN_1", RName = "Europe1" , MetricDateTimeStamp = DateTime.UtcNow.AddMinutes(-8), Value = 13 * i },

     

     

     

     

    };

    It is similar to Livedata keeps on adding in timer and my X axis date range keeps on varying based on data.
    CName and RName and metrictimestamp will be unique in the entire collection
    X axis is metricTimestamp and Y axis is Value.

    how many series i have to create based on the combination of CName and RName all are line series definition. it is very urgent please assistme. Thanks in advance.

    Siva

  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 07 Apr 2011 Link to this post

    Hi Siva,
    I am not quite sure I understand the concrete problem that you have configuring your chart control. That is why, I prepared a simple test page, based on the information that you provided on your scenario - please find it attached. I hope it will quickly get you started. The following help topic discusses the grouping and aggregation features of RadChart and you can use it as a starting point as well - http://www.telerik.com/help/silverlight/radchart-features-grouping-and-aggregation.html.

    All the best,
    Tsvetie
    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