From 47b60c427d8b72e250b551ec857c0631b5857224 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 15 四月 2021 19:42:35 +0800
Subject: [PATCH] 2021-04-15

---
 src/menu/components/chart/antv-scatter/index.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/chart/antv-scatter/index.jsx b/src/menu/components/chart/antv-scatter/index.jsx
index 5151695..64e859d 100644
--- a/src/menu/components/chart/antv-scatter/index.jsx
+++ b/src/menu/components/chart/antv-scatter/index.jsx
@@ -163,12 +163,12 @@
 
       if (i % 2 === 0) {
         item.gender = 'male'
-        item.height = 160 + Math.floor(n * 35)
-        item.weight = 50 + Math.floor(m * 55)
+        item.height = 160 + Math.floor(n * 35 * 10) / 10
+        item.weight = 50 + Math.floor(m * 55 * 10) / 10
       } else {
         item.gender = 'female'
-        item.height = 140 + Math.floor(n * 40)
-        item.weight = 41 + Math.floor(m * 45)
+        item.height = 140 + Math.floor(n * 40 * 10) / 10
+        item.weight = 41 + Math.floor(m * 45 * 10) / 10
       }
 
       data.push(item)

--
Gitblit v1.8.0