|
@@ -112,7 +112,7 @@ const yearsData = years.filter(item => {
|
|
|
// console.log(filteredData,'filteredData');
|
|
|
const year1 = sourcsData.map(sourcsData => sourcsData.year);
|
|
|
const purchase = sourcsData.map(sourcsData => sourcsData.purchase);
|
|
|
-const gather = sourcsData.map(filteredData => sourcsData.gather);
|
|
|
+const gather = sourcsData.map(sourcsData => sourcsData.gather);
|
|
|
const donate = sourcsData.map(sourcsData => sourcsData.donate);
|
|
|
|
|
|
// 进一步处理数据,例如渲染到页面
|
|
@@ -203,7 +203,7 @@ export const pieOptions: EChartsOption = {
|
|
|
color: "#556677",
|
|
|
},
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
tooltip: {
|
|
|
trigger: "item",
|
|
|
axisPointer: {
|
|
@@ -651,7 +651,7 @@ export const mouthOptions: EChartsOption = {
|
|
|
offset: 0.86,
|
|
|
/*
|
|
|
0.86 = (文字 + 文字距下边线的距离)/(文字 + 文字距下边线的距离 + 下边线的宽度)
|
|
|
-
|
|
|
+
|
|
|
*/
|
|
|
color: "#fff", // 0% 处的颜色
|
|
|
},
|