fix:柱状图展示修改; #326

Merged
yangws merged 1 commits from yangws into main 2024-10-17 10:45:33 +08:00
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ 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(2); // const percentage = ((value / total) * 100).toFixed(); //
return `${percentage}%`; // return `${value}${percentage}%`; //
}, },
color: '#333', color: '#333',
fontSize: 12 fontSize: 12