fix: 状态卡片百分比错误

feat: 群聊Bot开关,防止Bot乱窜
This commit is contained in:
2024-04-12 00:32:08 +08:00
parent f9e5742821
commit 33dd2f104d
11 changed files with 129 additions and 25 deletions

View File

@ -0,0 +1,9 @@
const data = JSON.parse(document.getElementById('data').innerText);
function createPieChartOption(title, data){
// data为各项占比列表
}
function createBarChartOption(title, percent){
// percent为百分比最大值为100
}

View File

@ -132,8 +132,7 @@
used += item.value
}
})
console.log(used, total)
return used / total * 100
return (1 - used / total) * 100
}
@ -146,6 +145,7 @@
top: 'center',
textStyle: {
//文字颜色
lineHeight: 36,
color: '#fff',
fontSize: 30