AnyChart
API Reference
Still have questions?
Contact support
Top

[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.
first-valueChoose 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.
last-valueChoose 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.
weighted-averageCalculate average value in a group using other column values as weights and use it as a value of a point.