Interface: INumberFormatter
Charting Library.INumberFormatter
Specific formatter for number
Hierarchy
-
IFormatter<number>↳
INumberFormatter
Methods
format
▸ format(value?): string
Whatever the input type, formats the data following a certain logic and return that value as a string
Parameters
| Name | Type |
|---|---|
value? | number |
Returns
string
Inherited from
formatChange
▸ formatChange(currentPrice, prevPrice): string
Formatter for a price change
Parameters
| Name | Type | Description |
|---|---|---|
currentPrice | number | current price |
prevPrice | number | previous price |
Returns
string
parse
▸ parse(value): ErrorFormatterParseResult | SuccessFormatterParseResult<number>
Check if the input value satisfies the logic and return either an error or the result of the parsing
Parameters
| Name | Type |
|---|---|
value | string |
Returns
ErrorFormatterParseResult | SuccessFormatterParseResult<number>