SparklineCollection

SparklineCollection class

Encapsulates a collection of Sparkline objects.

class SparklineCollection;

Methods

MethodDescription
get(number)Gets the Sparkline element at the specified index.
add(string, number, number)Add a sparkline.
remove(object)Removes the sparkline
getCount()Gets the number of elements contained in.
isNull()Checks whether the implementation object is null.

get(number)

Gets the Sparkline element at the specified index.

get(index: number) : Sparkline;

Parameters:

ParameterTypeDescription
indexnumberThe zero based index of the element.

Returns

The element at the specified index.

add(string, number, number)

Add a sparkline.

add(dataRange: string, row: number, column: number) : number;

Parameters:

ParameterTypeDescription
dataRangestringSpecifies the new data range of the sparkline.
rownumberThe row index of the location.
columnnumberThe column index of the location.

remove(object)

Removes the sparkline

remove(o: object) : void;

Parameters:

ParameterTypeDescription
oobject

getCount()

Gets the number of elements contained in.

getCount() : number;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;