AxisEx.DisplayUnit Property
Gets or sets display unit settings for axis labels.
Namespace: DevExpress.Docs.Office
Assembly: DevExpress.Docs.Core.v26.1.dll
Declaration
Property Value
| Type | Description |
|---|---|
| DisplayUnitOptionsEx | Contains display unit settings for axis labels. |
Remarks
The following code snippet sets display unit settings for axis labels:
using DevExpress.Docs.Office;
// Access the chart argument axis.
CategoryAxisEx? xAxis = chartEx.ArgumentAxis;
// Set axis label font size and display unit settings.
if (xAxis != null) {
xAxis.DisplayUnit = new DisplayUnitOptionsEx { UnitType = DisplayUnitType.Billions };
}
See Also