add method

add

Adds a chart to the collection.

Returns

Chart object index.

def add(self, type, upper_left_row, upper_left_column, lower_right_row, lower_right_column):
    ...
ParameterTypeDescription
typeChartTypeChart type
upper_left_rowintUpper left row index.
upper_left_columnintUpper left column index.
lower_right_rowintLower right row index
lower_right_columnintLower right column index

add

Adds a chart to the collection.

Returns

Chart object index.

def add(self, type, data_range, top_row, left_column, right_row, bottom_column):
    ...
ParameterTypeDescription
typeChartTypeChart type
data_rangestrSpecifies the data range of the chart
top_rowintUpper left row index.
left_columnintUpper left column index.
right_rowintLower right row index
bottom_columnintLower right column index

Remarks

NOTE: This member is now obsolete. Instead, please use ChartCollection.add property. This property will be removed 12 months later since May 2022. Aspose apologizes for any inconvenience you may have experienced.

add

Adds a chart with preset template.

Returns

Chart object index.

def add(self, data, data_range, is_vertical, top_row, left_column, right_row, bottom_column):
    ...
ParameterTypeDescription
databytesThe data of chart template file(.crtx).
data_rangestrSpecifies the data range of the chart
is_verticalboolSpecifies whether to plot the series from a range of cell values by row or by column.
top_rowintUpper left row index.
left_columnintUpper left column index.
right_rowintLower right row index
bottom_columnintLower right column index

add

Adds a chart to the collection.

Returns

Chart object index.

def add(self, type, data_range, is_vertical, top_row, left_column, right_row, bottom_column):
    ...
ParameterTypeDescription
typeChartTypeChart type
data_rangestrSpecifies the data range of the chart
is_verticalboolSpecifies whether to plot the series from a range of cell values by row or by column.
top_rowintUpper left row index.
left_columnintUpper left column index.
right_rowintLower right row index
bottom_columnintLower right column index

See Also