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