This commit is contained in:
白了个白 2024-10-18 10:11:30 +08:00
commit a8c823030b
1 changed files with 1 additions and 1 deletions

View File

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