AggregateExpression interface

An aggregate expression defines a calculation that is processed over a set of data. Schema: [operator: string, initialValue?: boolean | number, mapExpression: Expression] operator: An expression function that is then applied to against all values calculated by the mapExpression for each point in the cluster. Supported operators: o For numbers: +, *, max, min o For Booleans: all, any initialValue: Optional, an initial value in which the first calculated value is aggregated against. mapExpression: An expression that is applied against each point in the data set.

Extends

Array<any>

Properties

Array

Inherited Properties

length

Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.

Inherited Methods

concat((T | ConcatArray<T>)[])

Combines two or more arrays.

concat(ConcatArray<any>[])

Combines two or more arrays.

every((value: any, index: number, array: any[]) => unknown, any)

Determines whether all the members of an array satisfy the specified test.

filter((value: any, index: number, array: any[]) => unknown, any)

Returns the elements of an array that meet the condition specified in a callback function.

filter<S>((value: any, index: number, array: any[]) => value, any)

Returns the elements of an array that meet the condition specified in a callback function.

forEach((value: any, index: number, array: any[]) => void, any)

Performs the specified action for each element in an array.

indexOf(any, number)

Returns the index of the first occurrence of a value in an array.

join(string)

Adds all the elements of an array separated by the specified separator string.

lastIndexOf(any, number)

Returns the index of the last occurrence of a specified value in an array.

map<U>((value: any, index: number, array: any[]) => U, any)

Calls a defined callback function on each element of an array, and returns an array that contains the results.

pop()

Removes the last element from an array and returns it.

push(any[])

Appends new elements to an array, and returns the new length of the array.

reduce((previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any)

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

reduce((previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, any)
reduce<U>((previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, U)

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

reduceRight((previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any)

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

reduceRight((previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, any)
reduceRight<U>((previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, U)

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

reverse()

Reverses the elements in an Array.

shift()

Removes the first element from an array and returns it.

slice(number, number)

Returns a section of an array.

some((value: any, index: number, array: any[]) => unknown, any)

Determines whether the specified callback function returns true for any element of an array.

sort((a: any, b: any) => number)

Sorts an array.

splice(number, number)

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

splice(number, number, any[])

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

toLocaleString()

Returns a string representation of an array. The elements are converted to string using their toLocalString methods.

toString()

Returns a string representation of an array.

unshift(any[])

Inserts new elements at the start of an array.

Property Details

Array

Array: ArrayConstructor

Property Value

ArrayConstructor

Inherited Property Details

length

Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.

length: number

Property Value

number

Inherited From Array.length

Inherited Method Details

concat((T | ConcatArray<T>)[])

Combines two or more arrays.

function concat(items: (T | ConcatArray<T>)[]): any[]

Parameters

items

(T | ConcatArray<T>)[]

Additional items to add to the end of array1.

Returns

any[]

Inherited From Array.concat

concat(ConcatArray<any>[])

Combines two or more arrays.

function concat(items: ConcatArray<any>[]): any[]

Parameters

items

ConcatArray<any>[]

Additional items to add to the end of array1.

Returns

any[]

Inherited From Array.concat

every((value: any, index: number, array: any[]) => unknown, any)

Determines whether all the members of an array satisfy the specified test.

function every(callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any): boolean

Parameters

callbackfn

(value: any, index: number, array: any[]) => unknown

A function that accepts up to three arguments. The every method calls the callbackfn function for each element in the array until the callbackfn returns a value which is coercible to the Boolean value false, or until the end of the array.

thisArg

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

Returns

boolean

Inherited From Array.every

filter((value: any, index: number, array: any[]) => unknown, any)

Returns the elements of an array that meet the condition specified in a callback function.

function filter(callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any): any[]

Parameters

callbackfn

(value: any, index: number, array: any[]) => unknown

A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.

thisArg

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

Returns

any[]

Inherited From Array.filter

filter<S>((value: any, index: number, array: any[]) => value, any)

Returns the elements of an array that meet the condition specified in a callback function.

function filter<S>(callbackfn: (value: any, index: number, array: any[]) => value, thisArg?: any): S[]

Parameters

callbackfn

(value: any, index: number, array: any[]) => value

A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.

thisArg

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

Returns

S[]

Inherited From Array.filter

forEach((value: any, index: number, array: any[]) => void, any)

Performs the specified action for each element in an array.

function forEach(callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any)

Parameters

callbackfn

(value: any, index: number, array: any[]) => void

A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

thisArg

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

Inherited From Array.forEach

indexOf(any, number)

Returns the index of the first occurrence of a value in an array.

function indexOf(searchElement: any, fromIndex?: number): number

Parameters

searchElement

any

The value to locate in the array.

fromIndex

number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

Returns

number

Inherited From Array.indexOf

join(string)

Adds all the elements of an array separated by the specified separator string.

function join(separator?: string): string

Parameters

separator

string

A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.

Returns

string

Inherited From Array.join

lastIndexOf(any, number)

Returns the index of the last occurrence of a specified value in an array.

function lastIndexOf(searchElement: any, fromIndex?: number): number

Parameters

searchElement

any

The value to locate in the array.

fromIndex

number

The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.

Returns

number

Inherited From Array.lastIndexOf

map<U>((value: any, index: number, array: any[]) => U, any)

Calls a defined callback function on each element of an array, and returns an array that contains the results.

function map<U>(callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any): U[]

Parameters

callbackfn

(value: any, index: number, array: any[]) => U

A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

thisArg

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

Returns

U[]

Inherited From Array.map

pop()

Removes the last element from an array and returns it.

function pop(): any | undefined

Returns

any | undefined

Inherited From Array.pop

push(any[])

Appends new elements to an array, and returns the new length of the array.

function push(items: any[]): number

Parameters

items

any[]

New elements of the Array.

Returns

number

Inherited From Array.push

reduce((previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any)

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

function reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any

Parameters

callbackfn

(previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

Returns

any

Inherited From Array.reduce

reduce((previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, any)

function reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any

Parameters

callbackfn

(previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any

initialValue

any

Returns

any

Inherited From Array.reduce

reduce<U>((previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, U)

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

function reduce<U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U

Parameters

callbackfn

(previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

initialValue

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

Returns

U

Inherited From Array.reduce

reduceRight((previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any)

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

function reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any

Parameters

callbackfn

(previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

Returns

any

Inherited From Array.reduceRight

reduceRight((previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, any)

function reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any

Parameters

callbackfn

(previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any

initialValue

any

Returns

any

Inherited From Array.reduceRight

reduceRight<U>((previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, U)

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

function reduceRight<U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U

Parameters

callbackfn

(previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

initialValue

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

Returns

U

Inherited From Array.reduceRight

reverse()

Reverses the elements in an Array.

function reverse(): any[]

Returns

any[]

Inherited From Array.reverse

shift()

Removes the first element from an array and returns it.

function shift(): any | undefined

Returns

any | undefined

Inherited From Array.shift

slice(number, number)

Returns a section of an array.

function slice(start?: number, end?: number): any[]

Parameters

start

number

The beginning of the specified portion of the array.

end

number

The end of the specified portion of the array. This is exclusive of the element at the index 'end'.

Returns

any[]

Inherited From Array.slice

some((value: any, index: number, array: any[]) => unknown, any)

Determines whether the specified callback function returns true for any element of an array.

function some(callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any): boolean

Parameters

callbackfn

(value: any, index: number, array: any[]) => unknown

A function that accepts up to three arguments. The some method calls the callbackfn function for each element in the array until the callbackfn returns a value which is coercible to the Boolean value true, or until the end of the array.

thisArg

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

Returns

boolean

Inherited From Array.some

sort((a: any, b: any) => number)

Sorts an array.

function sort(compareFn?: (a: any, b: any) => number): this

Parameters

compareFn

(a: any, b: any) => number

Function used to determine the order of the elements. It is expected to return a negative value if first argument is less than second argument, zero if they're equal and a positive value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.

[11,2,22,1].sort((a, b) => a - b)

Returns

this

Inherited From Array.sort

splice(number, number)

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

function splice(start: number, deleteCount?: number): any[]

Parameters

start

number

The zero-based location in the array from which to start removing elements.

deleteCount

number

The number of elements to remove.

Returns

any[]

Inherited From Array.splice

splice(number, number, any[])

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

function splice(start: number, deleteCount: number, items: any[]): any[]

Parameters

start

number

The zero-based location in the array from which to start removing elements.

deleteCount

number

The number of elements to remove.

items

any[]

Elements to insert into the array in place of the deleted elements.

Returns

any[]

Inherited From Array.splice

toLocaleString()

Returns a string representation of an array. The elements are converted to string using their toLocalString methods.

function toLocaleString(): string

Returns

string

Inherited From Array.toLocaleString

toString()

Returns a string representation of an array.

function toString(): string

Returns

string

Inherited From Array.toString

unshift(any[])

Inserts new elements at the start of an array.

function unshift(items: any[]): number

Parameters

items

any[]

Elements to insert at the start of the Array.

Returns

number

Inherited From Array.unshift