(
axis: Axis,
axisStatKey: AxisStatKey,
)
| 268 | * - series filtered out are excluded. |
| 269 | */ |
| 270 | export 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). |
no test coverage detected
searching dependent graphs…