|
@@ -11,6 +11,9 @@ export const eleCake = {
|
|
|
bottom: '5%',
|
|
|
containLabel: true
|
|
|
},
|
|
|
+ legend: {
|
|
|
+ data: ['高风险', '低风险', '优先', '普通', '严控']
|
|
|
+ },
|
|
|
dataZoom: [{
|
|
|
type: 'slider',//给x轴设置滚动条
|
|
|
show: true, //flase直接隐藏图形
|
|
@@ -106,6 +109,26 @@ export const eleCake = {
|
|
|
},
|
|
|
data: [300, 25, 26, 20, 10, 20]
|
|
|
},
|
|
|
+ {
|
|
|
+ name: '总数', // 总数显示,生成一个总数的柱状图,将颜色设为透明,
|
|
|
+ type: 'bar', // label将位置设备内部底部,造成一个总数显示在
|
|
|
+ stack: '总', // 柱状图上方的假象
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+ // offset: ['50', '80'],
|
|
|
+ show: true,
|
|
|
+ position: 'insideBottom',
|
|
|
+ formatter: '{c}', // 显示的总数
|
|
|
+ textStyle: { color: '#000' }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: 'rgba(128, 128, 128, 0)' // 柱状图颜色设为透明
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: []
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
|
|
@@ -244,6 +267,9 @@ export const pillar = {
|
|
|
// }
|
|
|
export const discoloration = {
|
|
|
tooltip: {},
|
|
|
+ legend: {
|
|
|
+ data: ['A', 'B', 'C', 'D']
|
|
|
+ },
|
|
|
// legend: {
|
|
|
// data: ['一月销量', '二月销量'],
|
|
|
// right: '25%',
|
|
@@ -336,6 +362,26 @@ export const discoloration = {
|
|
|
},
|
|
|
data: [300, 25, 26, 20, 10, 20]
|
|
|
},
|
|
|
+ {
|
|
|
+ name: '总数', // 总数显示,生成一个总数的柱状图,将颜色设为透明,
|
|
|
+ type: 'bar', // label将位置设备内部底部,造成一个总数显示在
|
|
|
+ stack: '总', // 柱状图上方的假象
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+ // offset: ['50', '80'],
|
|
|
+ show: true,
|
|
|
+ position: 'insideBottom',
|
|
|
+ formatter: '{c}', // 显示的总数
|
|
|
+ textStyle: { color: '#000' }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: 'rgba(128, 128, 128, 0)' // 柱状图颜色设为透明
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: []
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
//安检通道综合效率----柱状图
|
|
@@ -382,6 +428,9 @@ export const discoloration = {
|
|
|
// }
|
|
|
export const discolorationcops = {
|
|
|
tooltip: {},
|
|
|
+ legend: {
|
|
|
+ data: ['A', 'B', 'C', 'D']
|
|
|
+ },
|
|
|
// legend: {
|
|
|
// data: ['一月销量', '二月销量'],
|
|
|
// right: '25%',
|
|
@@ -474,6 +523,26 @@ export const discolorationcops = {
|
|
|
},
|
|
|
data: [300, 25, 26, 20, 10, 20]
|
|
|
},
|
|
|
+ {
|
|
|
+ name: '总数', // 总数显示,生成一个总数的柱状图,将颜色设为透明,
|
|
|
+ type: 'bar', // label将位置设备内部底部,造成一个总数显示在
|
|
|
+ stack: '总', // 柱状图上方的假象
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+ // offset: ['50', '80'],
|
|
|
+ show: true,
|
|
|
+ position: 'insideBottom',
|
|
|
+ formatter: '{c}', // 显示的总数
|
|
|
+ textStyle: { color: '#000' }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: 'rgba(128, 128, 128, 0)' // 柱状图颜色设为透明
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: []
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
|