AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.10.0 version of this document. Switch to the 8.4.0 version to see the up to date information.

[enum] anychart.enums.AggregationTypeImprove this Doc

Aggregation type for table columns.
ValueDescriptionExample
averageCalculate average value in a group and use it as a value of a point.
firstChoose the first non-NaN value in a group as a value of a point.
firstValueChoose the first non-undefined value as a value of a point.
lastChoose the last non-NaN value in a group as a value of a point.
lastValueChoose the last non-undefined value as a value of a point.
listPut all non-undefined values in a group to an array and us it as a value of a point.
maxChoose the biggest non-NaN value in a group as a value of a point.
minChoose the lowest non-NaN value in a group as a value of a point.
sumCalculate the sum of values in a group and use it as a value of a point.
weightedAverageCalculate average value in a group using other column values as weights and use it as a value of a point.