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

ChartDataSource and its aggregation functions

2 Answers 77 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Buddy
Top achievements
Rank 1
Buddy asked on 12 Mar 2013, 08:19 AM
Hello,
Why ChartDataSource is no longer support custom aggregate functions? It was very useful feature. I'm using the last RadControls.
And could you provide me another approach to aggregate my datapoints? Thanks.

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 14 Mar 2013, 04:42 PM
Hi Nick,

Actually, the functionality is there, with some changes, though. The aggregate functions are now defined per series, allowing you to use one ChartDataSource for all series, while applying different sampling functions. To achieve this, please create a class, which inherits from the series you use and override the corresponding Get*AggregateFunction method. E.g. for categorical series you would need to override GetValueAggregateFunction and (if needed) GetCategoryAggregateFunction and for ScatterPointSeries, ScatterLineSeries or ScatterAreaSeries you have to override GetXValueAggregateFunction  and GetYValueAggregateFunction.

Please, accept our apologies for not including this in our documentation. We are aware of the problem and we aim to fix it.

Best regards,
Ves
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Buddy
Top achievements
Rank 1
answered on 14 Mar 2013, 05:35 PM
Thanks for the guide!
Tags
ChartView
Asked by
Buddy
Top achievements
Rank 1
Answers by
Ves
Telerik team
Buddy
Top achievements
Rank 1
Share this question
or