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

Method getApproximateExtent

src/data/SeriesData.ts:681–686  ·  view source on GitHub ↗

* Optimize for the scenario that data is filtered by a given extent. * Consider that if data amount is more than hundreds of thousand, * extent calculation will cost more than 10ms and the cache will * be erased because of the filtering.

(
        dim: SeriesDimensionLoose,
        filter: DataSanitizationFilter | NullUndefined
    )

Source from the content-addressed store, hash-verified

679 * be erased because of the filtering.
680 */
681 getApproximateExtent(
682 dim: SeriesDimensionLoose,
683 filter: DataSanitizationFilter | NullUndefined
684 ): [number, number] {
685 return this._approximateExtent[dim] || this._store.getDataExtent(this._getStoreDimIndex(dim), filter);
686 }
687
688 /**
689 * NOTICE: `_approximateExtent` does not support filter. Callers must ensure the input extent

Callers 1

Calls 2

_getStoreDimIndexMethod · 0.95
getDataExtentMethod · 0.45

Tested by

no test coverage detected