Aspose::Cells::Charts::ChartCollection::Add method

ChartCollection::Add(ChartType, int32_t, int32_t, int32_t, int32_t) method

Adds a chart to the collection.

int32_t Aspose::Cells::Charts::ChartCollection::Add(ChartType type, int32_t upperLeftRow, int32_t upperLeftColumn, int32_t lowerRightRow, int32_t lowerRightColumn)
ParameterTypeDescription
typeChartTypeChart type
upperLeftRowint32_tUpper left row index.
upperLeftColumnint32_tUpper left column index.
lowerRightRowint32_tLower right row index
lowerRightColumnint32_tLower right column index

ReturnValue

Chart object index.

See Also

ChartCollection::Add(const Vector <uint8_t>&, const U16String&, bool, int32_t, int32_t, int32_t, int32_t) method

Adds a chart with preset template.

int32_t Aspose::Cells::Charts::ChartCollection::Add(const Vector<uint8_t> &data, const U16String &dataRange, bool isVertical, int32_t topRow, int32_t leftColumn, int32_t rightRow, int32_t bottomColumn)
ParameterTypeDescription
dataconst Vector <uint8_t>&The data of chart template file(.crtx).
dataRangeconst U16String&Specifies the data range of the chart
isVerticalboolSpecifies whether to plot the series from a range of cell values by row or by column.
topRowint32_tUpper left row index.
leftColumnint32_tUpper left column index.
rightRowint32_tLower right row index
bottomColumnint32_tLower right column index

ReturnValue

Chart object index.

See Also

ChartCollection::Add(const Vector <uint8_t>&, const char16_t*, bool, int32_t, int32_t, int32_t, int32_t) method

Adds a chart with preset template.

int32_t Aspose::Cells::Charts::ChartCollection::Add(const Vector<uint8_t> &data, const char16_t *dataRange, bool isVertical, int32_t topRow, int32_t leftColumn, int32_t rightRow, int32_t bottomColumn)
ParameterTypeDescription
dataconst Vector <uint8_t>&The data of chart template file(.crtx).
dataRangeconst char16_t*Specifies the data range of the chart
isVerticalboolSpecifies whether to plot the series from a range of cell values by row or by column.
topRowint32_tUpper left row index.
leftColumnint32_tUpper left column index.
rightRowint32_tLower right row index
bottomColumnint32_tLower right column index

ReturnValue

Chart object index.

See Also

ChartCollection::Add(ChartType, const U16String&, bool, int32_t, int32_t, int32_t, int32_t) method

Adds a chart to the collection.

int32_t Aspose::Cells::Charts::ChartCollection::Add(ChartType type, const U16String &dataRange, bool isVertical, int32_t topRow, int32_t leftColumn, int32_t rightRow, int32_t bottomColumn)
ParameterTypeDescription
typeChartTypeChart type
dataRangeconst U16String&Specifies the data range of the chart
isVerticalboolSpecifies whether to plot the series from a range of cell values by row or by column.
topRowint32_tUpper left row index.
leftColumnint32_tUpper left column index.
rightRowint32_tLower right row index
bottomColumnint32_tLower right column index

ReturnValue

Chart object index.

See Also

ChartCollection::Add(ChartType, const char16_t*, bool, int32_t, int32_t, int32_t, int32_t) method

Adds a chart to the collection.

int32_t Aspose::Cells::Charts::ChartCollection::Add(ChartType type, const char16_t *dataRange, bool isVertical, int32_t topRow, int32_t leftColumn, int32_t rightRow, int32_t bottomColumn)
ParameterTypeDescription
typeChartTypeChart type
dataRangeconst char16_t*Specifies the data range of the chart
isVerticalboolSpecifies whether to plot the series from a range of cell values by row or by column.
topRowint32_tUpper left row index.
leftColumnint32_tUpper left column index.
rightRowint32_tLower right row index
bottomColumnint32_tLower right column index

ReturnValue

Chart object index.

See Also