baigl #330

Merged
baigl merged 3 commits from baigl into main 2024-10-18 10:13:14 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit a8c823030b - Show all commits

View File

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