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