ChartCollection

ChartCollection class

Encapsulates a collection of Chart objects.

Properties

NameTypeDescription
Countint
Item (int)ChartGets the Chart element at the specified index.
Item (java.lang.String)ChartGets the chart by the name. The default chart name is null. So you have to explicitly set the name of the chart.

Methods

NameDescription
addFloatingChartAdds a chart to the collection.
addAdds a chart to the collection.
removeRemove the specific chart.
removeAtRemove a chart at the specific index.
clearClear all charts.
iterator
getReserved for internal use.
containsReserved for internal use.
indexOfReserved for internal use.

ChartCollection.Count property

Type: int

ChartCollection.Item (int) property

Gets the Chart element at the specified index.

Type: Chart

ChartCollection.Item (java.lang.String) property

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

Type: Chart

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

Adds a chart to the collection.

ParameterTypeDescription
typeintA ChartType value. Chart type
leftintThe x offset to corner
topintThe y offset to corner
widthintThe chart width
heightintThe chart height

Returns: Chart object index.

add(type, topRow, leftColumn, bottomRow, rightColumn) (1 of 5)

Adds a chart to the collection.

ParameterTypeDescription
typeintA ChartType value. Chart type
upperLeftRowUpper left row index.
upperLeftColumnUpper left column index.
lowerRightRowLower right row index
lowerRightColumnLower right column index

Returns: Chart object index.


add(type, dataRange, topRow, leftColumn, rightRow, bottomColumn) (2 of 5)

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
typeintA ChartType value. Chart type
dataRangeStringSpecifies the data range of the chart
topRowintUpper left row index.
leftColumnintUpper left column index.
rightRowintLower right row index
bottomColumnintLower right column index

Returns: Chart object index.


add(data, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn) (3 of 5)

Adds a chart with preset template.

ParameterTypeDescription
databyte[]The 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.
topRowintUpper left row index.
leftColumnintUpper left column index.
rightRowintLower right row index
bottomColumnintLower right column index

Returns: Chart object index.


add(type, dataRange, isVertical, topRow, leftColumn, rightRow, bottomColumn) (4 of 5)

Adds a chart to the collection.

ParameterTypeDescription
typeintA ChartType value. Chart type
dataRangeStringSpecifies the data range of the chart
isVerticalbooleanSpecifies whether to plot the series from a range of cell values by row or by column.
topRowintUpper left row index.
leftColumnintUpper left column index.
rightRowintLower right row index
bottomColumnintLower right column index

Returns: Chart object index.


add(value) (5 of 5)

Reserved for internal use.

remove(chart)

Remove the specific chart.

ParameterTypeDescription
chartChart

removeAt(index)

Remove a chart at the specific index.

ParameterTypeDescription
indexintThe chart index.

clear()

Clear all charts.

iterator()

get(index)

Reserved for internal use.

contains(value)

Reserved for internal use.

indexOf(value)

Reserved for internal use.