ExcelChart.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, SubchartCount won't change.
This method only works in xlsx files, not xls.
Syntax
Namespace: FlexCel.Core
public abstract void AddSubchart(TChartType chartType, Int32 axisIndex)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
chartType | TChartType | Type of subchart added. If it is the same as the current chart type, it won't be added. | |
axisIndex | Int32 | 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. |