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

Method getNodeByIndex

src/data/Graph.ts:94–97  ·  view source on GitHub ↗

* Get node by data index

(dataIndex: number)

Source from the content-addressed store, hash-verified

92 * Get node by data index
93 */
94 getNodeByIndex(dataIndex: number): GraphNode {
95 const rawIdx = this.data.getRawIndex(dataIndex);
96 return this.nodes[rawIdx];
97 };
98 /**
99 * Get node by id
100 */

Callers 5

getDataParamsMethod · 0.80
updateDataMethod · 0.80
formatTooltipMethod · 0.80
getDataParamsMethod · 0.80
graphForceLayoutFunction · 0.80

Calls 1

getRawIndexMethod · 0.65

Tested by

no test coverage detected