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

Method get

src/data/DataStore.ts:449–455  ·  view source on GitHub ↗

* Get value. Return NaN if idx is out of range.

(dim: DimensionIndex, idx: number)

Source from the content-addressed store, hash-verified

447 * Get value. Return NaN if idx is out of range.
448 */
449 get(dim: DimensionIndex, idx: number): ParsedValue {
450 if (!(idx >= 0 && idx < this._count)) {
451 return NaN;
452 }
453 const dimStore = this._chunks[dim];
454 return dimStore ? dimStore[this.getRawIndex(idx)] : NaN;
455 }
456
457 getValues(idx: number): ParsedValue[];
458 getValues(dimensions: readonly DimensionIndex[], idx?: number): ParsedValue[];

Callers 8

getValuesMethod · 0.95
getSumMethod · 0.95
getValueMethod · 0.45
getValueFunction · 0.45
getOrdinalMethod · 0.45
parseAndCollectMethod · 0.45

Calls 1

getRawIndexMethod · 0.65

Tested by

no test coverage detected