|
|
|
@ -60,12 +60,12 @@ export default function createWordCloud(data) {
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
//颜色的回调函数, []
|
|
|
|
|
color: function () {
|
|
|
|
|
return colors[Math.floor((Math.random() * 8) + 0)];
|
|
|
|
|
// return 'rgb(' + [
|
|
|
|
|
// Math.round(Math.random() * 255),
|
|
|
|
|
// Math.round(Math.random() * 255),
|
|
|
|
|
// Math.round(Math.random() * 255)
|
|
|
|
|
// ].join(',') + ')';
|
|
|
|
|
// return colors[Math.floor((Math.random() * 8) + 0)];
|
|
|
|
|
return 'rgb(' + [
|
|
|
|
|
Math.round(Math.random() * 255),
|
|
|
|
|
Math.round(Math.random() * 255),
|
|
|
|
|
Math.round(Math.random() * 255)
|
|
|
|
|
].join(',') + ')';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|