From aceebceef71936c641771f0bfe90fc14770ea9f5 Mon Sep 17 00:00:00 2001 From: ljx <864490211@qq.com> Date: Fri, 14 Mar 2025 11:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E9=97=B4=E7=8E=AF=E5=BD=A2=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/baozuo-demo/pieChart.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/baozuo-demo/pieChart.vue b/src/components/baozuo-demo/pieChart.vue index 3270cf0..7ccb601 100644 --- a/src/components/baozuo-demo/pieChart.vue +++ b/src/components/baozuo-demo/pieChart.vue @@ -19,15 +19,15 @@
-
-

{{ testchartData[2].value }}

+
+

{{ testchartData[2].value }}

{{ testchartData[2].name }}

-
-

{{ testchartData[3].value }}

+
+

{{ testchartData[3].value }}

{{ testchartData[3].name }}

@@ -71,7 +71,7 @@ name: "组件产量", }, ], - color: ['#3de7c9','#88a8f4','#ffdc9d','#eb7e41'], + color: ['#3de7c9','#88a8f4','#FFD700','#08e5ff'], lineWidth: 40, radius: '75%', activeRadius: '80%' @@ -213,7 +213,7 @@ // color: "#E5F2A7", // }, // ]), - '#3de7c9','#88a8f4','#ffdc9d','#eb7e41' + '#3de7c9','#88a8f4','#FFD700','#08e5ff' ]; const sum = chartData.reduce((per, cur) => per + cur.value, 0); const gap = (1 * sum) / 100;