调整页面echart
This commit is contained in:
@@ -111,24 +111,21 @@ const tableStore = new TableStore({
|
||||
},
|
||||
|
||||
tooltip: {
|
||||
backgroundColor: '#fff',
|
||||
textStyle: {
|
||||
color: '#000'
|
||||
},
|
||||
formatter: function (params: any) {
|
||||
var tips = `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
|
||||
<span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[0].name}</span></div>`
|
||||
for (var i = 0; i < params.length; i++) {
|
||||
// <p style="width:14px;height:8px;border-radius:2px;background:${
|
||||
// legendColorList[i]
|
||||
// }"></p>
|
||||
tips += `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
|
||||
<span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[i].seriesName
|
||||
}</span> ${params[i].seriesName == '在线率' ? params[i].value?.toFixed(2) : params[i].value
|
||||
} </div>`
|
||||
}
|
||||
return tips
|
||||
}
|
||||
|
||||
// formatter: function (params: any) {
|
||||
// var tips = `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
|
||||
// <span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[0].name}</span></div>`
|
||||
// for (var i = 0; i < params.length; i++) {
|
||||
// // <p style="width:14px;height:8px;border-radius:2px;background:${
|
||||
// // legendColorList[i]
|
||||
// // }"></p>
|
||||
// tips += `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
|
||||
// <span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[i].seriesName
|
||||
// }</span> ${params[i].seriesName == '在线率' ? params[i].value?.toFixed(2) : params[i].value
|
||||
// } </div>`
|
||||
// }
|
||||
// return tips
|
||||
// }
|
||||
},
|
||||
|
||||
calculable: true,
|
||||
|
||||
Reference in New Issue
Block a user