This commit is contained in:
yanran200730
2023-01-30 09:56:43 +08:00
parent 1abd4c49b0
commit b947d4236d

View File

@@ -405,7 +405,7 @@
tarValue = data[i].value tarValue = data[i].value
} }
} }
let p = total === 0 ? 0 : (tarValue / total * 100).toFixed(0) let p = total === 0 ? 0 : (tarValue / total * 100).toFixed(2)
return name + '' + tarValue + ' ' + p + '%' return name + '' + tarValue + ' ' + p + '%'
} }
}, },