Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions en/option-gl/series/bar3D.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,21 @@ The smoothness of the bevel, the larger the value, the smoother.

Stacking of bar chart. On the same category axis, the series with the same `stack` name would be put on top of each other. Note that the data items that need to be stack in different series must have the same index in the array.

See also [stackStrategy](~series-bar3D.stackStrategy) on how to customize how values are stacked.

Notice: `stack` only supports stacking on `value` and `log` axis for now. `time` and `category` axis are not supported.

## stackStrategy(string) = 'samesign'

{{ use: partial-version(
version = '5.3.3'
) }}

How to stack values if the [stack](~series-bar3D.stack) property has been set. Options:
+ `'samesign'`: only stack values if the value to be stacked has the same sign as the currently cumulated stacked value.
+ `'all'`: stack all values, irrespective of the signs of the current or cumulative stacked value.
+ `'positive'`: only stack positive values.
+ `'negatve'`: only stack negative values.

## minHeight(number) = 0

Expand Down
14 changes: 14 additions & 0 deletions en/option/series/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,22 @@ Configurations of select state. Available when [selectedMode](~series-bar.select

Name of stack. On the same category axis, the series with the same `stack` name would be put on top of each other.

See also [stackStrategy](~series-bar.stackStrategy) on how to customize how values are stacked.

Notice: `stack` only supports stacking on `value` and `log` axis for now. `time` and `category` axis are not supported.

## stackStrategy(string) = 'samesign'

{{ use: partial-version(
version = '5.3.3'
) }}

How to stack values if the [stack](~series-bar.stack) property has been set. Options:
+ `'samesign'`: only stack values if the value to be stacked has the same sign as the currently cumulated stacked value.
+ `'all'`: stack all values, irrespective of the signs of the current or cumulative stacked value.
+ `'positive'`: only stack positive values.
+ `'negatve'`: only stack negative values.

## 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.
Expand Down
14 changes: 14 additions & 0 deletions en/option/series/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,26 @@ Only work when main axis is `'category'` axis (`axis.type` is `'category'`). Opt

If stack the value. On the same category axis, the series with the same `stack` name would be put on top of each other.

See also [stackStrategy](~series-line.stackStrategy) on how to customize how values are stacked.

Notice: `stack` only supports stacking on `value` and `log` axis for now. `time` and `category` axis are not supported.

The effect of the below example could be seen through stack switching of [toolbox](~toolbox) on the top right corner:

~[600x400](${galleryViewPath}doc-example/line-stack-tiled&edit=1&reset=1)

## stackStrategy(string) = 'samesign'

{{ use: partial-version(
version = '5.3.3'
) }}

How to stack values if the [stack](~series-line.stack) property has been set. Options:
+ `'samesign'`: only stack values if the value to be stacked has the same sign as the currently cumulated stacked value.
+ `'all'`: stack all values, irrespective of the signs of the current or cumulative stacked value.
+ `'positive'`: only stack positive values.
+ `'negatve'`: only stack negative values.

{{ use: partial-cursor() }}

## connectNulls(boolean) = false
Expand Down
15 changes: 14 additions & 1 deletion zh/option/series/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,22 @@ option = {

## stack(string) = null

数据堆叠,同个类目轴上系列配置相同的`stack`值可以堆叠放置。
数据堆叠,同个类目轴上系列配置相同的`stack`值可以堆叠放置。参见[stackStrategy](~series-line.stackStrategy)关于如何定制数值的堆叠方式。

注:目前`stack`只支持堆叠于 `value` 和 `log` 类型的类目轴上,不支持 `time` 和 `category` 类型的类目轴。

## stackStrategy(string) = 'samesign'

{{ use: partial-version(
version = '5.3.3'
) }}

如果[stack](~series-bar.stack)属性已被设置,如何堆积数值。选项。
+ `'samesign'` 只在要堆叠的值与当前累积的堆叠值具有相同的符号时才堆叠。
+ `'all' 堆叠所有的值,不管当前或累积的堆叠值的符号是什么。
+ `'正' 只堆积正值。
+ `'negatve' 只堆叠负值。

## sampling(string)

柱状图在数据量远大于像素点时候的降采样策略,开启后可以有效的优化图表的绘制效率,默认关闭,也就是全部绘制不过滤数据点。
Expand Down Expand Up @@ -500,3 +512,4 @@ option = {
prefix = '#' + ${prefix}
) }}
{{ /if }}

14 changes: 14 additions & 0 deletions zh/option/series/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,26 @@ const option = {

数据堆叠,同个类目轴上系列配置相同的`stack`值后,后一个系列的值会在前一个系列的值上相加。

参见[stackStrategy](~series-line.stackStrategy)关于如何定制数值的堆叠方式。

注:目前`stack`只支持堆叠于 `value` 和 `log` 类型的类目轴上,不支持 `time` 和 `category` 类型的类目轴。

下面示例可以通过右上角 [toolbox](~toolbox) 中的堆叠切换看效果:

~[600x400](${galleryViewPath}doc-example/line-stack-tiled&edit=1&reset=1)

## stackStrategy(string) = 'samesign'

{{ use: partial-version(
version = '5.3.3'
) }}

如果[stack](~series-bar.stack)属性已被设置,如何堆积数值。选项。
+ `'samesign'` 只在要堆叠的值与当前累积的堆叠值具有相同的符号时才堆叠。
+ `'all' 堆叠所有的值,不管当前或累积的堆叠值的符号是什么。
+ `'正' 只堆积正值。
+ `'negatve' 只堆叠负值。

{{ use: partial-cursor() }}

## connectNulls(boolean) = false
Expand Down