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

Method getValues

src/data/DataStore.ts:459–480  ·  view source on GitHub ↗
(dimensions: readonly DimensionIndex[] | number, idx?: number)

Source from the content-addressed store, hash-verified

457 getValues(idx: number): ParsedValue[];
458 getValues(dimensions: readonly DimensionIndex[], idx?: number): ParsedValue[];
459 getValues(dimensions: readonly DimensionIndex[] | number, idx?: number): ParsedValue[] {
460 const values = [];
461 let dimArr: DimensionIndex[] = [];
462 if (idx == null) {
463 idx = dimensions as number;
464 // TODO get all from store?
465 dimensions = [];
466 // All dimensions
467 for (let i = 0; i < this._dimensions.length; i++) {
468 dimArr.push(i);
469 }
470 }
471 else {
472 dimArr = dimensions as DimensionIndex[];
473 }
474
475 for (let i = 0, len = dimArr.length; i < len; i++) {
476 values.push(this.get(dimArr[i], idx));
477 }
478
479 return values;
480 }
481
482 /**
483 * @param dim concrete dim

Callers 9

SeriesData.test.tsFile · 0.45
getTooltipPositionMethod · 0.45
updateMarkerLayoutFunction · 0.45
getSingleMarkerEndPointFunction · 0.45
findPointFromSeriesFunction · 0.45
eachActiveStateMethod · 0.45
setLabelFunction · 0.45

Calls 1

getMethod · 0.95

Tested by

no test coverage detected