|
|
@ -301,6 +301,15 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return newArr;
|
|
|
|
return newArr;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//获取堆叠样式
|
|
|
|
|
|
|
|
getStackStyle(){
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
let style = ""
|
|
|
|
|
|
|
|
if (optionsSetup.stackStyle == "upDown") {
|
|
|
|
|
|
|
|
style = "total"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return style
|
|
|
|
|
|
|
|
},
|
|
|
|
//静态数据
|
|
|
|
//静态数据
|
|
|
|
staticDataFn(val) {
|
|
|
|
staticDataFn(val) {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
@ -329,6 +338,7 @@ export default {
|
|
|
|
type: "bar",
|
|
|
|
type: "bar",
|
|
|
|
data: data,
|
|
|
|
data: data,
|
|
|
|
barGap: "0%",
|
|
|
|
barGap: "0%",
|
|
|
|
|
|
|
|
stack: this.getStackStyle(),
|
|
|
|
barWidth : optionsSetup.maxWidth,
|
|
|
|
barWidth : optionsSetup.maxWidth,
|
|
|
|
label : {
|
|
|
|
label : {
|
|
|
|
show: optionsSetup.isShow,
|
|
|
|
show: optionsSetup.isShow,
|
|
|
|