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

Function countSeriesOnAxisOnKey

src/coord/axisStatistics.ts:270–287  ·  view source on GitHub ↗
(
    axis: Axis,
    axisStatKey: AxisStatKey,
)

Source from the content-addressed store, hash-verified

268 * - series filtered out are excluded.
269 */
270export function countSeriesOnAxisOnKey(
271 axis: Axis,
272 axisStatKey: AxisStatKey,
273): number {
274 if (__DEV__) {
275 assert(axisStatKey != null);
276 validateInputAxis(axis);
277 }
278 const perKeyPerAxis = getAxisStatPerKeyPerAxis(axis, axisStatKey);
279 if (!perKeyPerAxis || !perKeyPerAxis.sers.length) {
280 return 0;
281 }
282 let count = 0;
283 eachSeriesDealForAxisStat(axis.model.ecModel, perKeyPerAxis.sers, function () {
284 count++;
285 });
286 return count;
287}
288
289/**
290 * NOTICE: Available after `CoordinateSystem['create']` (not included).

Callers 1

boxplotLayoutFunction · 0.90

Calls 3

getAxisStatPerKeyPerAxisFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…