报警中心柱状图增加自定义label显示
This commit is contained in:
parent
b684831e78
commit
7eab692686
|
@ -191,7 +191,7 @@ export default {
|
||||||
left: '12',
|
left: '12',
|
||||||
right: '0%',
|
right: '0%',
|
||||||
bottom: '15',
|
bottom: '15',
|
||||||
top:15,
|
top: "25",
|
||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
|
@ -234,6 +234,16 @@ export default {
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: "#b87b1b"
|
color: "#b87b1b"
|
||||||
},
|
},
|
||||||
|
label: {
|
||||||
|
formatter: (params) => {
|
||||||
|
console.log(params);
|
||||||
|
return params.value>0?params.value:""
|
||||||
|
},
|
||||||
|
show: true,
|
||||||
|
position: "top",
|
||||||
|
color: "#b87b1b",
|
||||||
|
fontFamily: "ArialMT"
|
||||||
|
},
|
||||||
data: this.yData,
|
data: this.yData,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -260,10 +270,6 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// handleTableChange(pagination) {
|
|
||||||
// this.ipagination = pagination
|
|
||||||
// this.getAlarmLogTable()
|
|
||||||
// },
|
|
||||||
handlePageChange(page, pageSize) {
|
handlePageChange(page, pageSize) {
|
||||||
this.ipagination.current = page
|
this.ipagination.current = page
|
||||||
this.ipagination.pageSize = pageSize
|
this.ipagination.pageSize = pageSize
|
||||||
|
@ -286,6 +292,9 @@ export default {
|
||||||
drawAlarmChart_pie() {
|
drawAlarmChart_pie() {
|
||||||
this.alarmPie = echarts.init(document.getElementById("chartLeft"))
|
this.alarmPie = echarts.init(document.getElementById("chartLeft"))
|
||||||
let options = {
|
let options = {
|
||||||
|
tooltip: {
|
||||||
|
trigger: 'item'
|
||||||
|
},
|
||||||
graphic: [
|
graphic: [
|
||||||
{
|
{
|
||||||
type: "text",
|
type: "text",
|
||||||
|
@ -351,8 +360,6 @@ export default {
|
||||||
let params = {
|
let params = {
|
||||||
startDate:obj.startDate,
|
startDate:obj.startDate,
|
||||||
endDate:obj.endDate,
|
endDate:obj.endDate,
|
||||||
// startDate:"2023-07-15",
|
|
||||||
// endDate:"2023-07-21"
|
|
||||||
}
|
}
|
||||||
postAction("/alarmLog/ruleTop", params).then(res => {
|
postAction("/alarmLog/ruleTop", params).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user