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

Creating SeriesMapping dynamic

1 Answer 60 Views
Chart
This is a migrated thread and some comments may be shown as answers.
siva
Top achievements
Rank 1
siva asked on 04 Apr 2011, 03:42 PM
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

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 07 Apr 2011, 12:19 PM
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
Tags
Chart
Asked by
siva
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or