调整页面echart
This commit is contained in:
@@ -125,26 +125,26 @@ const tableStore = new TableStore({
|
||||
right: 0,
|
||||
top: 0
|
||||
},
|
||||
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
|
||||
}
|
||||
},
|
||||
// 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
|
||||
// }
|
||||
// },
|
||||
grid: {
|
||||
top: '50px', // 等价于 y: '16%'
|
||||
left: '10px',
|
||||
|
||||
Reference in New Issue
Block a user