MCPcopy Index your code
hub / github.com/apache/echarts / eachAxisOnKey

Function eachAxisOnKey

src/coord/axisStatistics.ts:295–311  ·  view source on GitHub ↗
(
    ecModel: GlobalModel,
    axisStatKey: AxisStatKey,
    cb: (axis: Axis) => void
)

Source from the content-addressed store, hash-verified

293 * by the given key.
294 */
295export function eachAxisOnKey(
296 ecModel: GlobalModel,
297 axisStatKey: AxisStatKey,
298 cb: (axis: Axis) => void
299): void {
300 if (__DEV__) {
301 assert(axisStatKey != null);
302 }
303 const keyed = ecModelCacheFullUpdateInner(getCachePerECFullUpdate(ecModel)).keyed;
304 const perKey = keyed && keyed.get(axisStatKey);
305 perKey && perKey.each(function (perKeyPerAxis) {
306 if (__DEV__) {
307 assert(perKeyPerAxis.sers.length > 0); // This is to avoid irrelevant axes to enter `cb`.
308 }
309 cb(perKeyPerAxis.axis);
310 });
311}
312
313/**
314 * NOTICE: Available after `CoordinateSystem['create']` (not included).

Callers 3

boxplotLayoutFunction · 0.90
barLayoutPolarFunction · 0.90
overallResetFunction · 0.90

Calls 5

getCachePerECFullUpdateFunction · 0.90
assertFunction · 0.50
cbFunction · 0.50
getMethod · 0.45
eachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…