CustomFormatters
Formatters used to adjust the displayed format of the date and time values.
Properties
dateFormatter
OptionalUsed to format the date displayed over the timescale when hovering over a chart. Note that by declaring this formatter all the default ones defined in Chart settings/Scales/Date format will display the exact same outcome as the formatter.
Type
priceFormatterFactory
OptionalUsed to format the number displayed in the price axis
Type
studyFormatterFactory
OptionalUsed to format the numbers displayed within a custom study.
Type
tickMarkFormatter
OptionalUsed to format date displayed in the time axis
Remark: tickMarkFormatter
must display the UTC date, and not the date corresponding to your local time zone.
Type
(date: Date, tickMarkType: TickMarkType) => string
Type declaration
Used to format date displayed in the time axis
Remark: tickMarkFormatter
must display the UTC date, and not the date corresponding to your local time zone.
Signature
(date: Date, tickMarkType: TickMarkType) => string
Parameters
Name | Type |
---|---|
date | Date |
tickMarkType | TickMarkType |
Returns
string
timeFormatter
OptionalUsed to format the time displayed in the bottom toolbar (time zone)