Skip to main content
Version: v26

CustomFormatters

Interface

Formatters used to adjust the displayed format of the date and time values.

Properties

dateFormatter

Used to format the date displayed over the timescale when hover over a chart

Type

CustomFormatter


priceFormatterFactory

Optional

Used to format the number displayed in the price axis

Type

SeriesFormatterFactory


studyFormatterFactory

Optional

Used to format the numbers displayed within a custom study.

Type

CustomStudyFormatterFactory


tickMarkFormatter

Optional

Used to format date displayed in the time axis Remark: tickMarkFormatter must display the UTC date, and not the date corresponding to your local timezone.

Type

(date: Date, tickMarkType: TickMarkType) => string

Type declaration

Signature

(date: Date, tickMarkType: TickMarkType) => string
Parameters
NameType
dateDate
tickMarkTypeTickMarkType
Returns

string


timeFormatter

Used to format the time displayed in the bottom toolbar (timezone)

Type

CustomFormatter