ChartDataSource and its aggregation functions

3 posts, 0 answers
  1. Buddy
    Buddy avatar
    4 posts
    Member since:
    Feb 2013

    Posted 12 Mar 2013 Link to this post

    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. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 14 Mar 2013 Link to this post

    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.

  3. DevCraft banner
  4. Buddy
    Buddy avatar
    4 posts
    Member since:
    Feb 2013

    Posted 14 Mar 2013 Link to this post

    Thanks for the guide!
Back to Top