Home > @activeviam/activeui-sdk > CurrencyFormatterParameters
CurrencyFormatterParameters interface
Formats axis tick labels into currency. e.g. 1000 -> $1,000.00
Signature:
export interface CurrencyFormatterParameters
Properties
Property | Type | Description |
---|---|---|
currencyCode | string | three letter ISO code for which currency symbol to use. Undefined by default. If undefined, will take user's locale's currency code. |
decimal | number | number of decimal points to include in the formatted number. Integers will have x number of 0's appended. e.g. decimal(2) 1000 -> $1,000.00 |
negative | string | if equal to "parentheses", negative numbers are displayed in parentheses. -1000 -> ($1,000) Otherwise negative numbers are displayed with a minus. |