77 lines
1.0 KiB
Plaintext
77 lines
1.0 KiB
Plaintext
{
|
|
backgroundColor: "#FFF",
|
|
title: {
|
|
text: ${test},
|
|
x: 'center'
|
|
},
|
|
tooltip: {
|
|
trigger: 'axis',
|
|
axisPointer: {
|
|
type: 'shadow'
|
|
},
|
|
formatter: function (params) {
|
|
var tips = "";
|
|
tips += params[0].name ;
|
|
for (var i = 0; i < params.length; i++) {
|
|
tips += params[i].seriesName + ":" + params[i].value;
|
|
}
|
|
return tips;
|
|
}
|
|
},
|
|
grid: {
|
|
left: '3%',
|
|
bottom: '6%',
|
|
containLabel: true
|
|
},
|
|
legend: {
|
|
data: ['未关联暂降次数', '已关联处理事件'],
|
|
x: 'left'
|
|
},
|
|
xAxis: [{
|
|
type: 'category',
|
|
data:${xvalue},
|
|
name: ${test},
|
|
splitLine: {
|
|
show: false
|
|
},
|
|
axisLabel: {
|
|
show: true,
|
|
interval: 0,
|
|
fontSize:10
|
|
}
|
|
}],
|
|
yAxis: [{
|
|
type: 'value',
|
|
name: '次'
|
|
}],
|
|
series: [{
|
|
name: '未关联暂降次数',
|
|
type: 'bar',
|
|
stack: '事件总数',
|
|
barMaxWidth: 45,
|
|
itemStyle: {
|
|
normal: {
|
|
color: 'orange',
|
|
barBorderColor: 'orange',
|
|
barBorderWidth: 2,
|
|
barBorderRadius: 0
|
|
}
|
|
},
|
|
data: ${yvalue1}
|
|
}, {
|
|
name: '已关联处理事件',
|
|
type: 'bar',
|
|
stack: '事件总数',
|
|
barMaxWidth: 45,
|
|
itemStyle: {
|
|
normal: {
|
|
color: "#ccc",
|
|
barBorderColor: '#ccc',
|
|
barBorderWidth: 2,
|
|
barBorderRadius: 0
|
|
}
|
|
},
|
|
data: ${yvalue2}
|
|
}]
|
|
}
|