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