SpreadJS Documentation
aggregateData Method
GC.Spread.Slicers Namespace > GeneralSlicerData type : aggregateData Method
The column name.
The aggregate type.
The specific range. range.min: number type, the minimum value. range.max: number type, the maximum value.
Aggregates the data by the specified column name.
Syntax
var instance = new GC.Spread.Slicers.GeneralSlicerData(data, columnNames);
var value; // Type: number
value = instance.aggregateData(columnName, aggregateType, range);
function aggregateData( 
   columnName : string,
   aggregateType : SlicerAggregateType,
   range : object
) : number;

Parameters

columnName
The column name.
aggregateType
The aggregate type.
range
The specific range. range.min: number type, the minimum value. range.max: number type, the maximum value.

Return Value

The aggregated data.
See Also

Reference

GeneralSlicerData type