Type alias: TickMarkFormatter()
TickMarkFormatter: (
time
,tickMarkType
,locale
) =>string
The TickMarkFormatter
is used to customize tick mark labels on the time scale.
This function should return time
as a string formatted according to tickMarkType
type (year, month, etc) and locale
.
Note that the returned string should be the shortest possible value and should have no more than 8 characters. Otherwise, the tick marks will overlap each other.
Example
const customFormatter = (time, tickMarkType, locale) => {
// your code here
};
Parameters
• time: UTCTimestamp
| BusinessDay
• tickMarkType: TickMarkType
• locale: string
Returns
string