ChartCollection

ChartCollection class

Encapsulates a collection of Chart objects.

Methods

NameDescription
add(type, upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn)Adds a chart to the collection.
add(type, dataRange, topRow, leftColumn, rightRow, bottomColumn)Adds a chart to the collection. NOTE: This member is now obsolete. Instead, please use add(int, java.lang.String, boolea
add(data, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn)Adds a chart with preset template.
add(type, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn)Adds a chart to the collection.
add()Reserved for internal use.
addFloatingChart(type, left, top, width, height)Adds a chart to the collection.
clear()Clear all charts.
contains()Reserved for internal use.
get(index)Gets the Chart element at the specified index.
get(name)Gets the chart by the name. The default chart name is null. So you have to explicitly set the name of the chart.
get()Reserved for internal use.
getCount()
indexOf()Reserved for internal use.
iterator()
remove(chart)Remove the specific chart.
removeAt(index)Remove a chart at the specific index.

add(type, upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn)

Adds a chart to the collection.

ParameterTypeDescription
typeNumberChartType
upperLeftRowUpper left row index.
upperLeftColumnUpper left column index.
lowerRightRowLower right row index
lowerRightColumnLower right column index

Returns: Number — Number Chart object index.

add(type, dataRange, topRow, leftColumn, rightRow, bottomColumn)

Adds a chart to the collection. NOTE: This member is now obsolete. Instead, please use add(int, java.lang.String, boolean, int, int, int, int) property. This property will be removed 12 months later since May 2022. Aspose apologizes for any inconvenience you may have experienced.

ParameterTypeDescription
typeNumberChartType
dataRangeStringSpecifies the data range of the chart
topRowNumberUpper left row index.
leftColumnNumberUpper left column index.
rightRowNumberLower right row index
bottomColumnNumberLower right column index

Returns: Number — Number Chart object index.

add(data, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn)

Adds a chart with preset template.

ParameterTypeDescription
dataArray of byteThe data of chart template file(.crtx).
dataRangeStringSpecifies the data range of the chart
isVerticalbooleanSpecifies whether to plot the series from a range of cell values by row or by column.
topRowNumberUpper left row index.
leftColumnNumberUpper left column index.
rightRowNumberLower right row index
bottomColumnNumberLower right column index

Returns: Number — Number Chart object index.

add(type, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn)

Adds a chart to the collection.

ParameterTypeDescription
typeNumberChartType
dataRangeStringSpecifies the data range of the chart
isVerticalbooleanSpecifies whether to plot the series from a range of cell values by row or by column.
topRowNumberUpper left row index.
leftColumnNumberUpper left column index.
rightRowNumberLower right row index
bottomColumnNumberLower right column index

Returns: Number — Number Chart object index.

add()

Reserved for internal use.

addFloatingChart(type, left, top, width, height)

Adds a chart to the collection.

ParameterTypeDescription
typeNumberChartType
leftNumberThe x offset to corner
topNumberThe y offset to corner
widthNumberThe chart width
heightNumberThe chart height

Returns: Number — Number Chart object index.

clear()

Clear all charts.

contains()

Reserved for internal use.

get(index)

Gets the Chart element at the specified index.

ParameterTypeDescription
indexNumberThe zero based index of the element.

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

get(name)

Gets the chart by the name. The default chart name is null. So you have to explicitly set the name of the chart.

ParameterTypeDescription
nameStringThe chart name.

Returns: Chart — Chart The chart.

get()

Reserved for internal use.

getCount()

indexOf()

Reserved for internal use.

iterator()

remove(chart)

Remove the specific chart.

ParameterTypeDescription
chartChart

removeAt(index)

Remove a chart at the specific index.

ParameterTypeDescription
indexNumberThe chart index.