[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IAxis.MajorUnit

MajorUnit Property

MajorUnit

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.

Declaration
double MajorUnit { get; set; }
Property MajorUnit As Double
Examples
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;