Approved
Last Updated: 29 Jul 2019 13:54 by ADMIN
Imported User
Created on: 30 Jul 2014 11:02
Category: Data Source
Type: Feature Request
9
Custom aggregate functions for data source/ chart series.
When using aggregates, it should be possible to define your own aggregate function, or even set it globally for kendo, so it could be used in other places. i.e. 

currently you can only specify the function name like 'sum', 'avg', etc. with this idea you could give the whole function like function(arguments...) {}

Also from what I saw it would be nice to have the `functions` object from kendo.data.js accessible, so you could add your custom functions, like:
`kendo.data.aggregate_functions['median'] = function(arguments...) {}` 
2 comments
Joe
Posted on: 14 Jan 2019 22:39

This still isn't available and exposing the "functions" object is literally a 1-line change. rwb's code uses serverFiltering, and this request is specifically for client-side.

rwb
Posted on: 07 Aug 2015 12:55
I believe this is already possible. Example: http://dojo.telerik.com/@rusev/ayaCi