[]
Gets or sets the major unit for the value axis.
The major unit determines the interval between major tick marks and major gridlines on the value axis.
double MajorUnit { get; set; }
Property MajorUnit As Double
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 10},
{"Feb", 25}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 360, 220).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
IAxis axis = chart.Axes.Item(AxisType.Value, AxisGroup.Primary);
axis.MajorUnit = 5d;
double majorUnit = axis.MajorUnit;