Home > @activeviam/activeui-sdk > ApproximateFormatterParameters
ApproximateFormatterParameters interface
Formats axis tick labels into k/M/B notation. e.g. 1000 -> 1k
Signature:
export interface ApproximateFormatterParameters
Properties
Property | Type | Description |
---|---|---|
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.00k |
negative | string | if equal to "parentheses", negative numbers are displayed in parentheses. -1000 -> (1k) Otherwise negative numbers are displayed with a minus. |
prefix | string | string to prepend to tick label. |
suffix | string | string to append to tick label. |