Compare commits

..

No commits in common. "1a447b30fb3bb0579ab1313bbd85b840384641f9" and "ea88aa959d25440ae43ce01f87e3fd3c170880c9" have entirely different histories.

1 changed files with 1 additions and 7 deletions

View File

@ -32,8 +32,6 @@ function getColor(index) {
//
function initChart() {
const myChart = echarts.init(chartRef.value);
const total = dataList.value.reduce((acc, cur) => acc + cur.value, 0); //
const options = {
tooltip: {
trigger: 'axis',
@ -72,11 +70,7 @@ function initChart() {
label: {
show: true,
position: 'top',
formatter: params => {
const value = dataList.value[params.dataIndex].value;
const percentage = ((value / total) * 100).toFixed(2); //
return `${percentage}%`; //
},
formatter: '{c}人',
color: '#333',
fontSize: 12
}