The requested page is not available for the requested platform. You are viewing the content for Default platform.

DataItemNumericFormat.Unit Property

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

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v19.1.Core.dll

Declaration

[DefaultValue(DataItemNumericUnit.Auto)]
public DataItemNumericUnit Unit { get; set; }
<DefaultValue(DataItemNumericUnit.Auto)>
Public Property Unit As DataItemNumericUnit

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