Skip to content

Commit

Permalink
fix: translation of apache/echarts#17086
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Jun 13, 2022
1 parent 6a2366e commit bee3b50
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
1 change: 1 addition & 0 deletions en/option/series/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ 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.
Expand Down
2 changes: 1 addition & 1 deletion en/option/series/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ 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.
Expand Down Expand Up @@ -490,4 +491,3 @@ Select state of specified single data.
prefix = "####",
hasInherit = ${state} === 'emphasis'
) }}

16 changes: 8 additions & 8 deletions zh/option/series/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,21 +216,22 @@ option = {

## stack(string) = null

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

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

## stackStrategy(string) = 'samesign'

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

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

+ `'samesign'` 只在要堆叠的值与当前累积的堆叠值具有相同的正负符号时才堆叠。
+ `'all' 堆叠所有的值,不管当前或累积的堆叠值的正负符号是什么。
+ `'positive'` 只堆积正值。
+ `'negatve'` 只堆叠负值。

## sampling(string)

Expand Down Expand Up @@ -512,4 +513,3 @@ option = {
prefix = '#' + ${prefix}
) }}
{{ /if }}

18 changes: 8 additions & 10 deletions zh/option/series/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ const option = {

## stack(string) = null

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

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

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

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

Expand All @@ -103,11 +101,12 @@ const option = {
version = '5.3.3'
) }}

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

+ `'samesign'` 只在要堆叠的值与当前累积的堆叠值具有相同的正负符号时才堆叠。
+ `'all' 堆叠所有的值,不管当前或累积的堆叠值的正负符号是什么。
+ `'positive'` 只堆积正值。
+ `'negatve'` 只堆叠负值。

{{ use: partial-cursor() }}

Expand Down Expand Up @@ -521,4 +520,3 @@ const option = {
prefix = "####",
hasInherit = ${state} === 'emphasis'
) }}

0 comments on commit bee3b50

Please sign in to comment.