diff --git a/en/option/series/bar.md b/en/option/series/bar.md index a27da5cbf..ed6208c2e 100644 --- a/en/option/series/bar.md +++ b/en/option/series/bar.md @@ -159,13 +159,14 @@ How to stack values if the [stack](~series-bar.stack) property has been set. Opt ## sampling(string) -The dowmsampling strategy used when the data size is much larger than pixel size. It will improve the performance when turned on. Defaults to be turned off, indicating that all the data points will be drawn. +The downsampling strategy used when the data size is much larger than pixel size. It will improve the performance when turned on. Defaults to be turned off, indicating that all the data points will be drawn. Options: + `'lttb'` Use Largest-Triangle-Three-Bucket algorithm to filter points. It will keep the trends and extremas. + `'average'` Use average value of filter points -+ `'max'` Use maximum value of filter points + `'min'` Use minimum value of filter points ++ `'max'` Use maximum value of filter points ++ `'minmax'` Use maximum extremum absolute value of filter points (Since `v5.5.0`) + `'sum'` Use sum of filter points {{ use: partial-cursor() }} diff --git a/en/option/series/line.md b/en/option/series/line.md index 527d33c49..1c5c7c42e 100644 --- a/en/option/series/line.md +++ b/en/option/series/line.md @@ -299,13 +299,14 @@ Here are 2 examples of broken line chart with dual value axis, showing the diffe ## sampling(string) -The dowmsampling strategy used when the data size is much larger than pixel size. It will improve the performance when turned on. Defaults to be turned off, indicating that all the data points will be drawn. +The downsampling strategy used when the data size is much larger than pixel size. It will improve the performance when turned on. Defaults to be turned off, indicating that all the data points will be drawn. Options: + `'lttb'` Use Largest-Triangle-Three-Bucket algorithm to filter points. It will keep the trends and extremas. + `'average'` Use average value of filter points -+ `'max'` Use maximum value of filter points + `'min'` Use minimum value of filter points ++ `'max'` Use maximum value of filter points ++ `'minmax'` Use maximum extremum absolute value of filter points (Since `v5.5.0`) + `'sum'` Use sum of filter points {{ use: partial-series-dimensions( diff --git a/zh/option/series/bar.md b/zh/option/series/bar.md index 355f0d808..47a47ec80 100644 --- a/zh/option/series/bar.md +++ b/zh/option/series/bar.md @@ -240,8 +240,9 @@ option = { 可选: + `'lttb'` 采用 Largest-Triangle-Three-Bucket 算法,可以最大程度保证采样后线条的趋势,形状和极值。 + `'average'` 取过滤点的平均值 -+ `'max'` 取过滤点的最大值 + `'min'` 取过滤点的最小值 ++ `'max'` 取过滤点的最大值 ++ `'minmax'` 取过滤点绝对值的最大极值 (从 `v5.5.0` 开始支持) + `'sum'` 取过滤点的和 {{ use: partial-cursor() }} diff --git a/zh/option/series/line.md b/zh/option/series/line.md index c446b08b3..ea7f259d2 100644 --- a/zh/option/series/line.md +++ b/zh/option/series/line.md @@ -333,8 +333,9 @@ const option = { 可选: + `'lttb'` 采用 Largest-Triangle-Three-Bucket 算法,可以最大程度保证采样后线条的趋势,形状和极值。 + `'average'` 取过滤点的平均值 -+ `'max'` 取过滤点的最大值 + `'min'` 取过滤点的最小值 ++ `'max'` 取过滤点的最大值 ++ `'minmax'` 取过滤点绝对值的最大极值 (从 `v5.5.0` 开始支持) + `'sum'` 取过滤点的和 {{ use: partial-series-dimensions(