UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

22 lines (21 loc) 1.68 kB
import type { AgNumericValue } from 'ag-charts-types'; import type { AggregatePropertyDefinition, DatumPropertyDefinition } from './dataModel'; /** Adds two operands, promoting to bigint when either is, so a bigint column's `0` seed stays exact. */ export declare function addAccumulated(acc: AgNumericValue, value: AgNumericValue): AgNumericValue; export declare function sumValues(values: any[], accumulator?: [AgNumericValue, AgNumericValue]): [AgNumericValue, AgNumericValue]; export declare function sum(id: string, matchGroupId: string): AggregatePropertyDefinition<any, any, [AgNumericValue, AgNumericValue]>; export declare function groupSum(id: string, opts?: { matchGroupId?: string; visible?: boolean; }): AggregatePropertyDefinition<any, any, [AgNumericValue, AgNumericValue]>; export declare function range(id: string, matchGroupId: string): AggregatePropertyDefinition<any, any, [AgNumericValue, AgNumericValue]>; export declare function groupCount(id: string, opts?: { visible?: boolean; }): AggregatePropertyDefinition<any, any, [number, number]>; export declare function groupAverage(id: string, opts?: { matchGroupId?: string; visible?: boolean; }): AggregatePropertyDefinition<any, any, [AgNumericValue, AgNumericValue], [AgNumericValue, AgNumericValue, number]>; export declare function area(id: string, aggFn: AggregatePropertyDefinition<any, any, any>, matchGroupId?: string): AggregatePropertyDefinition<any, any, [number, number]>; export declare function accumulatedValue(onlyPositive?: boolean): DatumPropertyDefinition<any>['processor']; export declare function trailingAccumulatedValue(): DatumPropertyDefinition<any>['processor'];