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

Method indexOfName

src/data/SeriesData.ts:838–845  ·  view source on GitHub ↗

* Retrieve the index with given name

(name: string)

Source from the content-addressed store, hash-verified

836 * Retrieve the index with given name
837 */
838 indexOfName(name: string): number {
839 for (let i = 0, len = this._store.count(); i < len; i++) {
840 if (this.getName(i) === name) {
841 return i;
842 }
843 }
844 return -1;
845 }
846
847 getRawIndex(idx: number): number {
848 return this._store.getRawIndex(idx);

Callers 7

_renderSymbolsMethod · 0.45
getRegionModelMethod · 0.45
formatTooltipMethod · 0.45
renderInnerMethod · 0.45
_buildGeoJSONMethod · 0.45
_buildSVGMethod · 0.45
queryDataIndexFunction · 0.45

Calls 2

getNameMethod · 0.95
countMethod · 0.65

Tested by

no test coverage detected