DateTimeScaleOptions.MeasureUnit Property
Gets or sets the detail level for date-time values.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v17.2.dll
Declaration
Property Value
Type | Description |
---|---|
DateTimeMeasureUnit | A DateTimeMeasureUnit enumeration value which represents the axis’ detail level. |
Available values:
Name | Description |
---|---|
Millisecond | Specifies a millisecond as the measurement unit for date-time values. |
Second | Specifies a second as the measurement unit for date-time values. |
Minute | Specifies a minute as the measurement unit for date-time values. |
Hour | Specifies an hour as the measurement unit for date-time values. |
Day | Specifies a day as the measurement unit for date-time values. |
Week | Specifies a week as the measurement unit for date-time values. |
Month | Specifies a month as the measurement unit for date-time values. |
Quarter | Specifies a quarter of a year as the measurement unit for date-time values. |
Year | Specifies a year as the measurement unit for date-time values. |
Property Paths
You can access this nested property as listed below:
Remarks
This property is available when the SeriesBase.ArgumentScaleType or SeriesBase.ValueScaleType property is set to DateTime, and the ScaleOptionsBase.ScaleMode property is set to Manual.
DateTimeScaleOptions.MeasureUnit = Day (default option) | DateTimeScaleOptions.MeasureUnit = Month |
---|---|
Note
To access DateTimeScaleOptions, use the AxisBase.DateTimeScaleOptions property.
To define a date-time measurement unit to which the beginning of a diagram’s gridlines and labels should be aligned, use the DateTimeScaleOptions.GridAlignment property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the MeasureUnit property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.