From 3e858a337e958a6ab9e6303319878a77d2af4e96 Mon Sep 17 00:00:00 2001 From: xiaowen <372193233@qq.com> Date: Fri, 2 Sep 2022 17:25:42 +0800 Subject: [PATCH] cxw-010203 --- components/word-cloud/index.js | 4 ++-- contrastPackages/eventRatio/survey/index.wxml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/word-cloud/index.js b/components/word-cloud/index.js index 2684aa7..b13d9ae 100644 --- a/components/word-cloud/index.js +++ b/components/word-cloud/index.js @@ -133,8 +133,8 @@ Component({ let fx = Math.sqrt(x); let max = fx * maxVal; let fy = maxVal / minVal; - let fz = fy * 100 >= 500 ? 500 : fy*100; - let y = fz/ max; + let fz = fy >= 5 ? 5 : fy; + let y = fz * 100/ max; list.forEach(ele => { let a = [ele[0], ele[1] * x * y ]; arr.push(a) diff --git a/contrastPackages/eventRatio/survey/index.wxml b/contrastPackages/eventRatio/survey/index.wxml index 1490a3a..f16ad63 100644 --- a/contrastPackages/eventRatio/survey/index.wxml +++ b/contrastPackages/eventRatio/survey/index.wxml @@ -171,7 +171,7 @@ {{item.Name}} - + \ No newline at end of file