Skip to main content

Interface: ISymbolValueFormatter

Charting Library.ISymbolValueFormatter

Hierarchy

Methods

format

format(price, signPositive?): string

Default formatter function used to assign the correct sign (+ or -) to a number

Parameters

NameType
pricenumber
signPositive?boolean

Returns

string


formatChange

formatChange(currentPrice, prevPrice, signPositive?): string

Formatter for a price change

Parameters

NameTypeDescription
currentPricenumbercurrent price
prevPricenumberprevious price
signPositive?booleanis the sign of the number positive

Returns

string