Table of Contents

TXlsxChart.AddSubchart Method

Adds a new subchart to the existing chart. Note that if the current active subchart is empty, this method will not add a new subchart, but replace the empty one. In that case, IExcelChart.SubchartCount won't change.

This method only works in xlsx files, not xls.

Syntax

Unit: FlexCel.XlsAdapter

procedure TXlsxChart.AddSubchart(const chartType: TChartType; const axisIndex: Integer);

Parameters

<-> Parameter Type Description
const chartType TChartType Type of subchart added. If it is the same as the current chart type, it won't be added.
const axisIndex Integer It can be 0 if the axis of this subchart will be the primary pair of axis, or 1 if they are the secondary pair.

See also