* Select data in range. (For optimization of filter) * (Manually inline code, support 5 million data filtering in data zoom.)
(range: Record<string, [number, number]>)
| 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 |
nothing calls this directly
no test coverage detected