Skip to main content
Version: 5.2

Interface: IPriceFormatter

Interface to be implemented by the object in order to be used as a price formatter

Methods​

format()​

format(price): string

Formatting function

Parameters​

• price: number

Original price to be formatted

Returns​

string

Formatted price


formatTickmarks()​

formatTickmarks(prices): string[]

A formatting function for price scale tick marks. Use this function to define formatting rules based on all provided price values.

Parameters​

• prices: readonly number[]

Prices to be formatted

Returns​

string[]

Formatted prices