Top

[enum] anychart.enums.AggregationType Improve this Doc

Aggregation type for table columns.

Try it:

Value Description
average Calculate average value in a group and use it as a value of a point.
first Choose the first non-NaN value in a group as a value of a point.
first-value Choose the first non-undefined value as a value of a point.
last Choose the last non-NaN value in a group as a value of a point.
last-value Choose the last non-undefined value as a value of a point.
list Put all non-undefined values in a group to an array and us it as a value of a point.
max Choose the biggest non-NaN value in a group as a value of a point.
min Choose the lowest non-NaN value in a group as a value of a point.
sum Calculate the sum of values in a group and use it as a value of a point.
weighted-average Calculate average value in a group using other column values as weights and use it as a value of a point.