Skip to main content

DataItemNumericFormat.Unit Property

Gets or sets the unit to which numeric values should be converted.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v23.2.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

[DefaultValue(DataItemNumericUnit.Auto)]
public DataItemNumericUnit Unit { get; set; }

Property Value

Type Default Description
DataItemNumericUnit Auto

A DataItemNumericUnit enumeration member that specifies the unit to which numeric values should be converted.

Remarks

Use the Unit property to specify whether numeric values should be shown in thousands, millions, etc.

If the Unit property is set to DataItemNumericUnit.Auto, values are converted to a unit that is selected so that there are no more than three digits in the resulting value’s integer part. After that, values are rounded to contain no more than three significant digits.

Otherwise, values are first converted to the unit specified by the DataItemNumericFormat.Unit property and then rounded according to the DataItemNumericFormat.Precision property value.

See Also