MCPcopy Index your code
hub / github.com/apache/echarts / selectRange

Method selectRange

src/data/SeriesData.ts:952–966  ·  view source on GitHub ↗

* Select data in range. (For optimization of filter) * (Manually inline code, support 5 million data filtering in data zoom.)

(range: Record<string, [number, number]>)

Source from the content-addressed store, hash-verified

950 * (Manually inline code, support 5 million data filtering in data zoom.)
951 */
952 selectRange(range: Record<string, [number, number]>): SeriesData {
953 'use strict';
954
955 const innerRange: Record<number, [number, number]> = {};
956 const dims = zrUtil.keys(range);
957 const dimIndices: number[] = [];
958 zrUtil.each(dims, (dim) => {
959 const dimIdx = this._getStoreDimIndex(dim);
960 innerRange[dimIdx] = range[dim];
961 dimIndices.push(dimIdx);
962 });
963
964 this._store = this._store.selectRange(innerRange);
965 return this;
966 }
967
968 /**
969 * Data mapping to a plain array

Callers

nothing calls this directly

Calls 2

_getStoreDimIndexMethod · 0.95
eachMethod · 0.45

Tested by

no test coverage detected