This commit is contained in:
parent
c6bc2a86fa
commit
45d7c0ea94
|
@ -170,7 +170,7 @@ const setChart1 = () => {
|
|||
|
||||
|
||||
// 计算总和的 10%
|
||||
const tenPercentOfTotal = totalValue * 0.05;
|
||||
const tenPercentOfTotal = totalValue * 0.02;
|
||||
// 使用 pieData 名称作为 legend 数据
|
||||
data.legendData = pieData.map((item) => item.name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue