From d91543ea5ef1eae12c5558baeba0ec670cd6a397 Mon Sep 17 00:00:00 2001
From: huangdeliang <huangdeliang@skieer.com>
Date: Tue, 23 Mar 2021 10:01:53 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A5=BC=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../InfoView/DailyAnalyzeCom/PieChart/index.vue           | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/stdiet-ui/src/views/custom/recipesBuild/InfoView/DailyAnalyzeCom/PieChart/index.vue b/stdiet-ui/src/views/custom/recipesBuild/InfoView/DailyAnalyzeCom/PieChart/index.vue
index b85925331..bf5d37a9b 100644
--- a/stdiet-ui/src/views/custom/recipesBuild/InfoView/DailyAnalyzeCom/PieChart/index.vue
+++ b/stdiet-ui/src/views/custom/recipesBuild/InfoView/DailyAnalyzeCom/PieChart/index.vue
@@ -130,7 +130,7 @@ export default {
           {
             type: "group",
             top: 60,
-            left: 10,
+            left: 8,
             silent: true,
             children: [
               {
@@ -156,7 +156,7 @@ export default {
           {
             type: "group",
             top: 36,
-            right: 10,
+            right: 0,
             silent: true,
             children: source.map((item, idx) => {
               const data =
@@ -170,7 +170,7 @@ export default {
                 style: {
                   text: `${item[0]}:${data.toFixed(1)}${
                     this.type === "calories" ? "千卡" : "克"
-                  }`,
+                  }${` (${((item[1] / total) * 100).toFixed(1)}%`})`,
                   fill: "#606266",
                 },
               };
@@ -181,7 +181,7 @@ export default {
           {
             type: "pie",
             radius: [0, 60],
-            center: ["50%", "55%"],
+            center: ["42%", "55%"],
             // labelLine: {
             //   length: 5,
             //   length2: 5,