堆叠图样式更新

qianming 3 years ago
parent d235f9c329
commit e377514793

@ -5717,6 +5717,18 @@ const widgetTools = [
placeholder: '', placeholder: '',
value: '' value: ''
}, },
{
type: 'el-select',
label: '堆叠样式',
name: 'stackStyle',
required: false,
placeholder: '',
selectOptions: [
{code: 'leftRight', name: '左右堆叠'},
{code: 'upDown', name: '上下堆叠'},
],
value: 'leftRight'
},
[ [
{ {
name: '柱体设置', name: '柱体设置',
@ -6090,7 +6102,7 @@ const widgetTools = [
}, },
], ],
}, },
/*{ {
name: '坐标轴边距设置', name: '坐标轴边距设置',
list: [ list: [
{ {
@ -6123,7 +6135,7 @@ const widgetTools = [
value: 10, value: 10,
}, },
], ],
},*/ },
/*{ /*{
name: '图例操作', name: '图例操作',
list: [ list: [

@ -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,

Loading…
Cancel
Save