You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name of the stack group. Series with the same `stack` name on the **same category axis** will be stacked on top of each other. See [stackStrategy](~series-${componentNameInLink}.stackStrategy) for customizing how values are stacked.
7
+
8
+
**Notice:** Stacking **only supports the stacked axis being of type**`'value'` or `'log'`. Axes of type `'time'` and `'category'` are **not supported** as the stacked axis.
9
+
10
+
{{ if: ${componentNameInLink} === 'line' }}
11
+
You can view the effect of the example below by switching stacks in the [toolbox](~toolbox) in the top-right corner.
Strategy for stacking values, only effective when [stack](~series-${componentNameInLink}.stack) is set. Optional values:
24
+
25
+
+`'samesign'` Only stack values if the value to be stacked has the **same sign** as the currently cumulated stacked value. **(Default)**
26
+
+`'all'` Stack all values regardless of positive or negative.
27
+
+`'positive'` Only stack positive values.
28
+
+`'negative'` Only stack negative values.
29
+
30
+
## stackOrder(string) = 'seriesAsc'
31
+
32
+
{{ use: partial-version(
33
+
isECharts = true,
34
+
version = '6.0.0'
35
+
) }}
36
+
37
+
Stack order. Optional values:
38
+
39
+
+`'seriesAsc'` Stack in series order. **(Default)**
40
+
+`'seriesDesc'` Stack in reversed series order.
41
+
42
+
**Notice:**
43
+
44
+
+`stackOrder` should be defined for all series with the same `stack` name. If `stackOrder` is defined for only some of the series, the stack order may change unexpectedly when certain series are hidden (e.g., through legend toggle).
Copy file name to clipboardExpand all lines: en/option-gl/series/bar3D.md
+2-19Lines changed: 2 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,27 +36,10 @@ Below are the differences between beveling and no beveling.
36
36
37
37
The smoothness of the bevel, the larger the value, the smoother.
38
38
39
-
## stack(string)
40
-
41
-
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.
42
-
43
-
See also [stackStrategy](~series-bar3D.stackStrategy) on how to customize how values are stacked.
44
-
45
-
Notice: `stack` only supports stacking on `value` and `log` axis for now. `time` and `category` axis are not supported.
46
-
47
-
## stackStrategy(string) = 'samesign'
48
-
49
-
{{ use: partial-version(
50
-
isECharts = true,
51
-
version = '5.3.3'
39
+
{{ use: partial-stack(
40
+
componentNameInLink = 'bar3D'
52
41
) }}
53
42
54
-
How to stack values if the [stack](~series-bar3D.stack) property has been set. Options:
55
-
+`'samesign'`: only stack values if the value to be stacked has the same sign as the currently cumulated stacked value.
56
-
+`'all'`: stack all values, irrespective of the signs of the current or cumulative stacked value.
Name of the stack group. Series with the same `stack` name on the **same category axis** will be stacked on top of each other. See [stackStrategy](~series-${componentNameInLink}.stackStrategy) for customizing how values are stacked.
7
+
8
+
**Notice:** Stacking **only supports the stacked axis being of type**`'value'` or `'log'`. Axes of type `'time'` and `'category'` are **not supported** as the stacked axis.
9
+
10
+
{{ if: ${componentNameInLink} === 'line' }}
11
+
You can view the effect of the example below by switching stacks in the [toolbox](~toolbox) in the top-right corner.
Strategy for stacking values, only effective when [stack](~series-${componentNameInLink}.stack) is set. Optional values:
23
+
24
+
+`'samesign'` Only stack values if the value to be stacked has the **same sign** as the currently cumulated stacked value. **(Default)**
25
+
+`'all'` Stack all values regardless of positive or negative.
26
+
+`'positive'` Only stack positive values.
27
+
+`'negative'` Only stack negative values.
28
+
29
+
## stackOrder(string) = 'seriesAsc'
30
+
31
+
{{ use: partial-version(
32
+
version = '6.0.0'
33
+
) }}
34
+
35
+
Stack order. Optional values:
36
+
37
+
+`'seriesAsc'` Stack in series order. **(Default)**
38
+
+`'seriesDesc'` Stack in reversed series order.
39
+
40
+
**Notice:**
41
+
42
+
+`stackOrder` should be defined for all series with the same `stack` name. If `stackOrder` is defined for only some of the series, the stack order may change unexpectedly when certain series are hidden (e.g., through legend toggle).
Copy file name to clipboardExpand all lines: en/option/series/bar.md
+2-33Lines changed: 2 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,41 +135,10 @@ Configurations of select state. Available when [selectedMode](~series-bar.select
135
135
version = '5.0.0'
136
136
) }}
137
137
138
-
## stack(string) = null
139
-
140
-
Name of stack. On the same category axis, the series with the same `stack` name would be put on top of each other.
141
-
142
-
See also [stackStrategy](~series-bar.stackStrategy) on how to customize how values are stacked.
143
-
144
-
Notice: `stack` only supports stacking on `value` and `log` axis for now. `time` and `category` axis are not supported.
145
-
146
-
## stackStrategy(string) = 'samesign'
147
-
148
-
{{ use: partial-version(
149
-
version = '5.3.3'
138
+
{{ use: partial-stack(
139
+
componentNameInLink = 'bar'
150
140
) }}
151
141
152
-
How to stack values if the [stack](~series-bar.stack) property has been set. Options:
153
-
154
-
+`'samesign'`: only stack values if the value to be stacked has the same sign as the currently cumulated stacked value.
155
-
+`'all'`: stack all values, irrespective of the signs of the current or cumulative stacked value.
156
-
+`'positive'`: only stack positive values.
157
-
+`'negative'`: only stack negative values.
158
-
159
-
## stackOrder(string) = 'seriesAsc'
160
-
161
-
{{ use: partial-version(
162
-
version = '6.0.0'
163
-
) }}
164
-
165
-
Stack order. Optional values:
166
-
+`'seriesAsc'` (default, stack in series order)
167
-
+`'seriesDesc'` (reverse stack order)
168
-
169
-
**Note:**`stackOrder` should be defined for all series with the same `stack` name. If `stackOrder` is defined for only some of the series, the stack order may change unexpectedly when certain series are hidden (e.g., through legend toggle).
170
-
171
-
Not supported in polar coordinate system.
172
-
173
142
## sampling(string)
174
143
175
144
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.
How to stack values if the [stack](~series-line.stack) property has been set. Options:
79
-
80
-
+`'samesign'`: only stack values if the value to be stacked has the same sign as the currently cumulated stacked value.
81
-
+`'all'`: stack all values, irrespective of the signs of the current or cumulative stacked value.
82
-
+`'positive'`: only stack positive values.
83
-
+`'negative'`: only stack negative values.
84
-
85
-
## stackOrder(string) = 'seriesAsc'
86
-
87
-
{{ use: partial-version(
88
-
version = '6.0.0'
89
-
) }}
90
-
91
-
Stack order. Optional values:
92
-
+`'seriesAsc'` (default, stack in series order)
93
-
+`'seriesDesc'` (reverse stack order)
94
-
95
-
**Note:**`stackOrder` should be defined for all series with the same `stack` name. If `stackOrder` is defined for only some of the series, the stack order may change unexpectedly when certain series are hidden (e.g., through legend toggle).
0 commit comments