Skip to main content

DataItemNumericUnit Type

Lists values that specify numeric units.

Declaration

export type DataItemNumericUnit = "Auto" | "Ones" | "Thousands" | "Millions" | "Billions"

Members

Name Description
"Auto"

The unit is selected automatically, so that there are no more than three digits in the resulting value’s integer part.

"Ones"

Values are shown “as is”.

"Thousands"

Values are converted to thousands.
1,234 -> 1.234K (in the en-US culture, provided that the DataItemNumericFormat.precision is set to 3)

"Millions"

Values are converted to millions.
123,456,789 -> 123.4M (in the en-US culture, provided that the DataItemNumericFormat.precision is set to 1)

"Billions"

Values are converted to billions.
12,345,678,901 -> 12.34B (in the en-US culture, provided that the DataItemNumericFormat.precision is set to 2)