[]
Specifies the axis group used by a chart axis or series.
Use this enum with chart APIs such as series and axes to select whether data is plotted on the primary axis group or the secondary axis group.
public enum AxisGroup
Public Enum AxisGroup
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 120},
{"Feb", 150}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
chart.SeriesCollection[0].AxisGroup = AxisGroup.Secondary;
| Name | Description |
|---|---|
| Primary | Specifies the primary axis group. |
| Secondary | Specifies the secondary axis group. |