Interface: CustomFormatters
Charting Library.CustomFormatters
Formatters used to adjust the displayed format of the date and time values.
Properties
dateFormatter
• dateFormatter: CustomFormatter
Used to format the date displayed over the timescale when hover over a chart
priceFormatterFactory
• Optional priceFormatterFactory: SeriesFormatterFactory
Used to format the number displayed in the price axis
studyFormatterFactory
• Optional studyFormatterFactory: CustomStudyFormatterFactory
Used to format the numbers displayed within a custom study.
tickMarkFormatter
• Optional tickMarkFormatter: (date: Date, tickMarkType: TickMarkType) => string
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 declaration
▸ (date, tickMarkType): string
Parameters
| Name | Type |
|---|---|
date | Date |
tickMarkType | TickMarkType |
Returns
string
timeFormatter
• timeFormatter: CustomFormatter
Used to format the time displayed in the bottom toolbar (timezone)