baigl #327

Merged
baigl merged 2 commits from baigl into main 2024-10-17 11:29:36 +08:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 6a8b0f82e8 - Show all commits

View File

@ -74,8 +74,8 @@ function initChart() {
position: 'top',
formatter: params => {
const value = dataList.value[params.dataIndex].value;
const percentage = ((value / total) * 100).toFixed(2); //
return `${percentage}%`; //
const percentage = ((value / total) * 100).toFixed(); //
return `${value}${percentage}%`; //
},
color: '#333',
fontSize: 12