MCPcopy
hub / github.com/apache/echarts / parseTimeAxisLabelFormatter

Function parseTimeAxisLabelFormatter

src/util/time.ts:109–116  ·  view source on GitHub ↗
(
    formatter: TimeAxisLabelFormatterOption
)

Source from the content-addressed store, hash-verified

107
108
109export function parseTimeAxisLabelFormatter(
110 formatter: TimeAxisLabelFormatterOption
111): TimeAxisLabelFormatterParsed {
112 // Keep the logic the same with function `leveledFormat`.
113 return (!zrUtil.isString(formatter) && !zrUtil.isFunction(formatter))
114 ? parseTimeAxisLabelFormatterDictionary(formatter)
115 : formatter;
116}
117
118/**
119 * The final generated dictionary is like:

Callers 1

makeLabelFormatterFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…