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

Method _getCategory

src/data/SeriesData.ts:743–750  ·  view source on GitHub ↗
(dimIdx: number, idx: number)

Source from the content-addressed store, hash-verified

741 }
742
743 private _getCategory(dimIdx: number, idx: number): OrdinalRawValue {
744 const ordinal = this._store.get(dimIdx, idx);
745 const ordinalMeta = this._store.getOrdinalMeta(dimIdx);
746 if (ordinalMeta) {
747 return ordinalMeta.categories[ordinal as OrdinalNumber];
748 }
749 return ordinal;
750 }
751
752 /**
753 * @return Never null/undefined. `number` will be converted to string. Because:

Callers 1

SeriesDataClass · 0.80

Calls 2

getOrdinalMetaMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected