Skip to content

Commit 8106d40

Browse files
authored
Merge pull request #448 from Justin-ZS/feat/support_reverse_stack_order
doc: add doc for stackOrder
2 parents 85778fa + e2c34b8 commit 8106d40

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

en/option/series/bar.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,18 @@ How to stack values if the [stack](~series-bar.stack) property has been set. Opt
157157
+ `'positive'`: only stack positive values.
158158
+ `'negative'`: only stack negative values.
159159

160+
## stackOrder(string) = 'seriesAsc'
161+
162+
{{ use: partial-version(
163+
version = '6.0.0'
164+
) }}
165+
166+
Stack order. Optional values:
167+
+ `'seriesAsc'` (default, stack in series order)
168+
+ `'seriesDesc'` (reverse stack order)
169+
170+
Not supported in polar coordinate system.
171+
160172
## sampling(string)
161173

162174
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.

en/option/series/line.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ How to stack values if the [stack](~series-line.stack) property has been set. Op
8181
+ `'positive'`: only stack positive values.
8282
+ `'negative'`: only stack negative values.
8383

84+
## stackOrder(string) = 'seriesAsc'
85+
86+
{{ use: partial-version(
87+
version = '6.0.0'
88+
) }}
89+
90+
Stack order. Optional values:
91+
+ `'seriesAsc'` (default, stack in series order)
92+
+ `'seriesDesc'` (reverse stack order)
93+
94+
Not supported in polar coordinate system.
95+
8496
{{ use: partial-cursor() }}
8597

8698
## connectNulls(boolean) = false

zh/option/series/bar.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,18 @@ option = {
233233
+ `'positive'` 只堆积正值。
234234
+ `'negative'` 只堆叠负值。
235235

236+
## stackOrder(string) = 'seriesAsc'
237+
238+
{{ use: partial-version(
239+
version = '6.0.0'
240+
) }}
241+
242+
堆叠顺序。可选值:
243+
+ `'seriesAsc'`(默认,系列顺序堆叠)
244+
+ `'seriesDesc'`(反向堆叠)
245+
246+
当前不支持极坐标系。
247+
236248
## sampling(string)
237249

238250
柱状图在数据量远大于像素点时候的降采样策略,开启后可以有效的优化图表的绘制效率,默认关闭,也就是全部绘制不过滤数据点。

zh/option/series/line.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ const option = {
108108
+ `'positive'` 只堆积正值。
109109
+ `'negative'` 只堆叠负值。
110110

111+
## stackOrder(string) = 'seriesAsc'
112+
113+
{{ use: partial-version(
114+
version = '6.0.0'
115+
) }}
116+
117+
堆叠顺序。可选值:
118+
+ `'seriesAsc'`(默认,系列顺序堆叠)
119+
+ `'seriesDesc'`(反向堆叠)
120+
121+
当前不支持极坐标系。
122+
111123
{{ use: partial-cursor() }}
112124

113125
## connectNulls(boolean) = false

0 commit comments

Comments
 (0)