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

Method minmaxDownSample

src/data/SeriesData.ts:1094–1104  ·  view source on GitHub ↗

* Large data down sampling using min-max * @param {string} valueDimension * @param {number} rate

(
        valueDimension: DimensionLoose,
        rate: number
    )

Source from the content-addressed store, hash-verified

1092 * @param {number} rate
1093 */
1094 minmaxDownSample(
1095 valueDimension: DimensionLoose,
1096 rate: number
1097 ): SeriesData<HostModel> {
1098 const list = cloneListForMapAndSample(this);
1099 list._store = this._store.minmaxDownSample(
1100 this._getStoreDimIndex(valueDimension),
1101 rate
1102 );
1103 return list as SeriesData<HostModel>;
1104 }
1105
1106 /**
1107 * Large data down sampling using largest-triangle-three-buckets

Callers

nothing calls this directly

Calls 1

_getStoreDimIndexMethod · 0.95

Tested by

no test coverage detected