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

Method getName

src/data/SeriesData.ts:731–741  ·  view source on GitHub ↗

* @return Never be null/undefined. `number` will be converted to string. Because: * In most cases, name is used in display, where returning a string is more convenient. * In other cases, name is used in query (see `indexOfName`), where we can keep the * rule that name `2` equals to na

(idx: number)

Source from the content-addressed store, hash-verified

729 * rule that name `2` equals to name `'2'`.
730 */
731 getName(idx: number): string {
732 const rawIndex = this.getRawIndex(idx);
733 let name = this._nameList[rawIndex];
734 if (name == null && this._nameDimIdx != null) {
735 name = getIdNameFromStore(this, this._nameDimIdx, rawIndex);
736 }
737 if (name == null) {
738 name = '';
739 }
740 return name;
741 }
742
743 private _getCategory(dimIdx: number, idx: number): OrdinalRawValue {
744 const ordinal = this._store.get(dimIdx, idx);

Callers 15

indexOfNameMethod · 0.95
makeOneByOneCheckerFunction · 0.80
formatTooltipMethod · 0.80
getDataParamsMethod · 0.80
_renderSymbolsMethod · 0.80
mapSymbolLayoutFunction · 0.80
dataStatisticsFunction · 0.80
getInitialDataMethod · 0.80
formatTooltipMethod · 0.80
MapSeriesClass · 0.80
_updateCommonStlMethod · 0.80
getLabelDefaultTextMethod · 0.80

Calls 1

getRawIndexMethod · 0.95

Tested by 1

makeOneByOneCheckerFunction · 0.64