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
Copy file name to clipboardExpand all lines: en/option/series/bar.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,6 +157,12 @@ How to stack values if the [stack](~series-bar.stack) property has been set. Opt
157
157
+`'positive'`: only stack positive values.
158
158
+`'negative'`: only stack negative values.
159
159
160
+
## stackPercent(boolean) = false
161
+
162
+
When enabled and `stack` is used, stacked values will be normalized as percentages of the total at each category. Each stack will add up to 100%.
163
+
164
+
Both the raw value and the normalized percentage will be displayed in the tooltip. Use `params.percent` to access the normalized value in tooltip and label formatters.
165
+
160
166
## sampling(string)
161
167
162
168
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.
Copy file name to clipboardExpand all lines: en/option/series/line.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,12 @@ How to stack values if the [stack](~series-line.stack) property has been set. Op
83
83
84
84
{{ use: partial-cursor() }}
85
85
86
+
## stackPercent(boolean) = false
87
+
88
+
When enabled and `stack` is used, stacked values will be normalized as percentages of the total at each category. Each stack will add up to 100%.
89
+
90
+
Both the raw value and the normalized percentage will be displayed in the tooltip. Use `params.percent` to access the normalized value in tooltip and label formatters.
0 commit comments