From bf1de9497dc05fa11a6aad098c1259a22bdd75b2 Mon Sep 17 00:00:00 2001 From: zx <604444282@qq.com> Date: Mon, 13 Dec 2021 15:10:46 +0800 Subject: [PATCH] =?UTF-8?q?zx-=E8=AF=8D=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/gol/bubbleWord.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/gol/bubbleWord.js b/src/utils/gol/bubbleWord.js index 03e0aab..c5b5982 100644 --- a/src/utils/gol/bubbleWord.js +++ b/src/utils/gol/bubbleWord.js @@ -42,8 +42,11 @@ export default function createWordCloud(data) { series: [{ type: 'wordCloud', shape: 'circle', - // rotationRange: [0, 0], + // rotationRange: [0, 0], //旋转角度的范围 + rotationStep: 90, //旋转角度的步长 //shape: 'circle', + sizeRange: [6, 48], //字体大小范围 + gridSize: 5, //字间距 maskImage: maskImage, left: 'center', top: 'center', @@ -55,6 +58,7 @@ export default function createWordCloud(data) { textStyle: { fontFamily: 'sans-serif', fontWeight: 'bold', + //颜色的回调函数, [] color: function () { return colors[Math.floor((Math.random() * 8) + 0)]; // return 'rgb(' + [