Skip to main content
A newer version of this page is available. .

Axis.MajorTimeUnit Property

Gets or sets the time unit for major tick marks on the date axis.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

AxisTimeUnits MajorTimeUnit { get; set; }

Property Value

Type Description
AxisTimeUnits

An AxisTimeUnits enumeration value specifying the time unit.

Available values:

Name Description
Auto

Specifies that the time unit for the date axis should be set automatically.

Days

Specifies that days should be used as the time unit for the date axis, so the chart data will be plotted along the axis in days.

Months

Specifies that months should be used as the time unit for the date axis, so the chart data will be plotted along the axis in months.

Years

Specifies that years should be used as the time unit for the date axis, so the chart data will be plotted along the axis in years.

Remarks

To specify the base unit for the date axis, use the Axis.BaseTimeUnit property. To set the distance between major tick marks and gridlines on the axis, use the Axis.MajorUnit property (to specify the interval of tick marks explicitly) or the Axis.SetAutoMajorUnit method (to evaluate the interval of tick marks automatically).

See Also