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

Method lttbDownSample

src/data/SeriesData.ts:1111–1121  ·  view source on GitHub ↗

* Large data down sampling using largest-triangle-three-buckets * @param {string} valueDimension * @param {number} targetCount

(
        valueDimension: DimensionLoose,
        rate: number
    )

Source from the content-addressed store, hash-verified

1109 * @param {number} targetCount
1110 */
1111 lttbDownSample(
1112 valueDimension: DimensionLoose,
1113 rate: number
1114 ): SeriesData<HostModel> {
1115 const list = cloneListForMapAndSample(this);
1116 list._store = this._store.lttbDownSample(
1117 this._getStoreDimIndex(valueDimension),
1118 rate
1119 );
1120 return list as SeriesData<HostModel>;
1121 }
1122
1123 getRawDataItem(idx: number) {
1124 return this._store.getRawDataItem(idx);

Callers

nothing calls this directly

Calls 1

_getStoreDimIndexMethod · 0.95

Tested by

no test coverage detected