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

Method count

src/scale/Ordinal.ts:325–328  ·  view source on GitHub ↗

* NOTICE: This is different from `.getOrdinalMeta().length` when extent * is specified by `xxxAxis.min/max` or by `dataZoom`.

()

Source from the content-addressed store, hash-verified

323 * is specified by `xxxAxis.min/max` or by `dataZoom`.
324 */
325 count(): number {
326 const extent = getScaleExtentForTickUnsafe(this._mapper);
327 return extent[1] - extent[0] + 1;
328 }
329
330 getOrdinalMeta(): OrdinalMeta {
331 return this._ordinalMeta;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected