SeriesCollection

SeriesCollection class

Encapsulates a collection of Series objects.

Methods

NameDescription
add(area, isVertical)Adds the Series collection to a chart. If set data on contiguous cells, use colon to seperate them.For example, $C$2:$C$
add(area, isVertical, checkLabels)Adds the Series collection to a chart. If set data on contiguous cells, use colon to seperate them.For example, $C$2:$C$
add()Reserved for internal use.
addR1C1(area, isVertical)Adds the Series collection to a chart. If set data on contiguous cells, use colon to seperate them.For example, R[1]C[1]
changeColors()
changeSeriesOrder(sourceIndex, destIndex)Directly changes the orders of the two series.
clear()Clears the collection
contains()Reserved for internal use.
get(index)Gets the Series element at the specified index.
get()Reserved for internal use.
getCategoryData()Gets or sets the range of category Axis values. It can be a range of cells (such as, “d1:e10”), or a sequence of values
getCount()
getSecondCategoryData()Gets or sets the range of second category Axis values. It can be a range of cells (such as, “d1:e10”), or a sequence of
getSeriesByOrder(order)Gets the Series element by order.
indexOf()Reserved for internal use.
isColorVaried()Represents if the color of points is varied.
iterator()
removeAt(index)Remove at a series at the specific index.
setCategoryData()Gets or sets the range of category Axis values. It can be a range of cells (such as, “d1:e10”), or a sequence of values
setColorVaried()Represents if the color of points is varied.
setSecondCategoryData()Gets or sets the range of second category Axis values. It can be a range of cells (such as, “d1:e10”), or a sequence of
setSeriesNames(startIndex, area, isVertical)Sets the name of all the serieses in the chart. If the start index is larger than the count of the serieses, it will ret
swapSeries()

add(area, isVertical)

Adds the Series collection to a chart. If set data on contiguous cells, use colon to seperate them.For example, $C$2:$C$5.If set data on non contiguous cells, use comma to seperate them.For example: ($C$2,$D$5).

ParameterTypeDescription
areaSpecifies values from which to plot the data series
isVerticalbooleanSpecifies whether to plot the series from a range of cell values by row or by column.

Returns: Number — Number Return the first index of the added ASeries in the NSeries.

add(area, isVertical, checkLabels)

Adds the Series collection to a chart. If set data on contiguous cells, use colon to seperate them.For example, $C$2:$C$5.If set data on non contiguous cells, use comma to seperate them.For example, ($C$2,$D$5).

ParameterTypeDescription
areaStringSpecifies values from which to plot the data series
isVerticalbooleanSpecifies whether to plot the series from a range of cell values by row or by column.
checkLabelsbooleanIndicates whether the range contains series’s name

Returns: Number — Number Return the first index of the added ASeries in the NSeries.

add()

Reserved for internal use.

addR1C1(area, isVertical)

Adds the Series collection to a chart. If set data on contiguous cells, use colon to seperate them.For example, R[1]C[1]:R[3]C[2].If set data on contiguous cells, use comma to seperate them.For example,(R[1]C[1],R[3]C[2]).

ParameterTypeDescription
areaStringSpecifies values from which to plot the data series
isVerticalbooleanSpecifies whether to plot the series from a range of cell values by row or by column.

Returns: Number — Number Return the first index of the added ASeries in the NSeries.

changeColors()

changeSeriesOrder(sourceIndex, destIndex)

Directly changes the orders of the two series.

ParameterTypeDescription
sourceIndexNumberThe current index
destIndexNumberThe dest index

clear()

Clears the collection

contains()

Reserved for internal use.

get(index)

Gets the Series element at the specified index.

ParameterTypeDescription
indexNumberThe zero based index of the element.

Returns: Series — Series The element at the specified index.

get()

Reserved for internal use.

getCategoryData()

Gets or sets the range of category Axis values. It can be a range of cells (such as, “d1:e10”), or a sequence of values (such as,"{2,6,8,10}").

getCount()

getSecondCategoryData()

Gets or sets the range of second category Axis values. It can be a range of cells (such as, “d1:e10”), or a sequence of values (such as,"{2,6,8,10}"). Only effects when some ASerieses plot on the second axis.

getSeriesByOrder(order)

Gets the Series element by order.

ParameterTypeDescription
orderNumberThe order of series

Returns: Series — Series The element series

indexOf()

Reserved for internal use.

isColorVaried()

Represents if the color of points is varied.

iterator()

removeAt(index)

Remove at a series at the specific index.

ParameterTypeDescription
indexNumberThe index.

setCategoryData()

Gets or sets the range of category Axis values. It can be a range of cells (such as, “d1:e10”), or a sequence of values (such as,"{2,6,8,10}").

setColorVaried()

Represents if the color of points is varied.

setSecondCategoryData()

Gets or sets the range of second category Axis values. It can be a range of cells (such as, “d1:e10”), or a sequence of values (such as,"{2,6,8,10}"). Only effects when some ASerieses plot on the second axis.

setSeriesNames(startIndex, area, isVertical)

Sets the name of all the serieses in the chart. If the start index is larger than the count of the serieses, it will return and do nothing.If set data on contiguous cells, use colon to seperate them.For example, $C$2:$C$5.If set data on contiguous cells, use comma to seperate them.For example, ($C$2,$D$5).

ParameterTypeDescription
startIndexNumberThe index of the first series which you want to set the name.
areaStringSpecifies the area for the series name.
isVerticalbooleanSpecifies whether to plot the series from a range of cell values by row or by column.

swapSeries()