代码调整
This commit is contained in:
76
pqs-event/event-boot/src/main/resources/templates/yftj.ftl
Normal file
76
pqs-event/event-boot/src/main/resources/templates/yftj.ftl
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
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}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user