[]
Specifies the type of chart axis.
Use this enumeration with Axes, IAxes.Item(AxisType),
or IAxes.Item(AxisType, AxisGroup) to select the category axis, value axis,
or series axis in a chart.
public enum AxisType
Public Enum AxisType
worksheet.Range["A1:B4"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 10},
{"Feb", 20},
{"Mar", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
IAxis categoryAxis = chart.Axes.Item(AxisType.Category);
| Name | Description |
|---|---|
| Category | Specifies that the axis displays categories. |
| SeriesAxis | Specifies that the axis displays data series. |
| Value | Specifies that the axis displays values. |