|
@@ -359,6 +359,15 @@ export default {
|
|
|
this.options.legend["data"] = arr;
|
|
|
}
|
|
|
},
|
|
|
+ //获取堆叠样式
|
|
|
+ getStackStyle() {
|
|
|
+ const optionsSetup = this.optionsSetup;
|
|
|
+ let style = "";
|
|
|
+ if (optionsSetup.stackStyle == "upDown") {
|
|
|
+ style = "total";
|
|
|
+ }
|
|
|
+ return style;
|
|
|
+ },
|
|
|
// 数据解析
|
|
|
setOptionsData(e, paramsConfig) {
|
|
|
const optionsSetup = this.optionsSetup;
|
|
@@ -440,6 +449,7 @@ export default {
|
|
|
type: "bar",
|
|
|
data: bar,
|
|
|
barGap: "0%",
|
|
|
+ stack : this.getStackStyle(),
|
|
|
barWidth: optionsSetup.maxWidth,
|
|
|
label: {
|
|
|
show: optionsSetup.isShowBar,
|
|
@@ -544,6 +554,7 @@ export default {
|
|
|
type: "bar",
|
|
|
data: bar,
|
|
|
barGap: "0%",
|
|
|
+ stack : this.getStackStyle(),
|
|
|
barWidth: optionsSetup.maxWidth,
|
|
|
label: {
|
|
|
show: optionsSetup.isShowBar,
|