MCPcopy Create free account
hub / github.com/apache/echarts / getLabel

Method getLabel

src/scale/Time.ts:154–163  ·  view source on GitHub ↗

* Get label is mainly for other components like dataZoom, tooltip.

(tick: ScaleTick)

Source from the content-addressed store, hash-verified

152 * Get label is mainly for other components like dataZoom, tooltip.
153 */
154 getLabel(tick: ScaleTick): string {
155 return format(
156 tick.value,
157 fullLeveledFormatter[
158 getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))
159 ] || fullLeveledFormatter.second,
160 this._useUTC,
161 this._locale
162 );
163 }
164
165 getFormattedLabel(
166 tick: ScaleTick,

Callers

nothing calls this directly

Calls 3

formatFunction · 0.90
getPrimaryTimeUnitFunction · 0.90

Tested by

no test coverage detected