Complex filtering for RadChart
Posted by: the telerik blogs,
on 03 Jun 2011 |
View original | Bookmarked: 0 time(s)
RadChart allows you to programmatically filter its data using FilterDescriptors as demonstrated in our help topic. However there are scenarios where you would like to have more complex filtering. For a sample scenario where a Chart is drawn according to the filtered RadGridViews data - read further.
The Chart and the GridView will be populated with the same data source List of Business Objects:
- public
class MyDateObject
{ public double SampleValue { get; set; } public DateTime Date { get; set; } } public class MyDataContext { public const int min = 20; public const int max = 80; public ObservableCollection<MyDateObject> List { get; set; } Random r = new Random(); DateTime baseDate = DateTime.Today; public MyDataContext() { this.CreateChartData(); } private void...