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

Method downSample

src/data/SeriesData.ts:1073–1087  ·  view source on GitHub ↗

* Large data down sampling on given dimension * @param sampleIndex Sample index for name and id

(
        dimension: DimensionLoose,
        rate: number,
        sampleValue: (frameValues: ArrayLike<ParsedValue>) => ParsedValueNumeric,
        sampleIndex: (frameValues: ArrayLike<ParsedValue>, value: ParsedValueNumeric) => number
    )

Source from the content-addressed store, hash-verified

1071 * @param sampleIndex Sample index for name and id
1072 */
1073 downSample(
1074 dimension: DimensionLoose,
1075 rate: number,
1076 sampleValue: (frameValues: ArrayLike<ParsedValue>) => ParsedValueNumeric,
1077 sampleIndex: (frameValues: ArrayLike<ParsedValue>, value: ParsedValueNumeric) => number
1078 ): SeriesData<HostModel> {
1079 const list = cloneListForMapAndSample(this);
1080 list._store = this._store.downSample(
1081 this._getStoreDimIndex(dimension),
1082 rate,
1083 sampleValue,
1084 sampleIndex
1085 );
1086 return list as SeriesData<HostModel>;
1087 }
1088
1089 /**
1090 * Large data down sampling using min-max

Callers

nothing calls this directly

Calls 1

_getStoreDimIndexMethod · 0.95

Tested by

no test coverage detected