SpreadJS 13
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.
In This Topic
    aggregateData Method
    In This Topic
    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