prod
张雄 3 years ago
parent 9a02c4e2d5
commit bf1de9497d

@ -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(' + [

Loading…
Cancel
Save