老规矩,先上图

下面说一下如何自定义不同形状的字符云

 比如这种

首先当然要先在项目中添加字符云,详见 vue 中添加字符云_前端字符云组件_Chris__Wang的博客-CSDN博客

首先要找图片,建议去IconFont里面去下载,地址:iconfont-阿里巴巴矢量图标库

登录后选择一个图标进行下载

然后就是要把下载的图片转成base64位编码了,网上有好多在线转编码的地址,我用的是 http://imgbase64.duoshitong.com/

复制转义后的编码,放到下面代码里面即可,我这里提供了几个

<template>
    <div id="wordCloud" :style="{width: '100%', height: '100%'}"></div>
</template>
<script>
export default {
    data(){
        return{
            
        }
    },
    mounted(){
        this.drawCloud()
    },
    methods:{
        drawCloud(){
            let wordCloud = this.$echarts.init(document.getElementById('wordCloud'));
            //图片base64编码
            let image = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAPzklEQVR4Xu2dCdB/YxXHP4pJJDvZQtmyREJEiyWZaeyVLUtaLQ2RrVFaBkWShDZLKFL2pjKJEsq+ExXZyp5lZEk0X+47/b3+7/vee3/33uc85zln5h2G+zznnO95vr97n+2cGQgJBAKBCRGYIbAJBAKBiREIgsToCAQmQSAIEsMjEAiCxBgIBNohEG+QdrhFq0IQCIIUEuhwsx0CQZB2uEWrQhAIghQS6HCzHQJBkHa4RatCEAiCFBLocLMdAkGQdrhFq0IQCIIUEuhwsx0CQZB2uEWrQhAIghQS6HCzHQJBkHa4RatCEAiCFBLocLMdAkGQdrhFq0IQCIIUEuhwsx0CQZB2uEWrQhAIghQS6HCzHQJBkHa4RatCEAiCDBPo2YEVgOWBZYDlAP23Wcb9zVaZ8xjw72n+ngQeAq4HbgJurP59GOsL1hIE6Sf4cwKbVn8rAwv2o4YbgIuAM4Hf9qSj6G6DIN2Ffz5gc2Az4L3AjN11XasnvWHOAk4Hzgeeq9UqHpoUgSDI6ANkFWCf6m3x6tG766SH+4Ejge8A+lwLaYlAEKQdcMJtY2BPYK12XQzSSnOXY4FDgXsG0ehMSRCkeUA3AI4AlmreNGmL44C9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C0NEK+FwLlsXJVudkDGVi7y2qAlAdJqtqqq0kYGFiDn1GaTzgGi9XTbFJstARBOtXOavpuHbKYI7OlXgJxXkyvu7Mte7inwlrh6B4TT7Bw3lhxxbizV/NELkAtt0Hpc0jMgNXmbvzY3yIEA2S4qu1xsTVpscqyphK3g5aZDthrpu1RHq4MA2f/VYYXkLlPPsUlPgHCswd0Fa3xu26U9ESCHZeTYhBWo9jbAMaVeAOHaBsulscaeOiBADgMy+vACZW5ABEa5zZtuVpyQjUV5rQVlLkAEhqGaqQUxiDYE4bYIDmw5RplyOUQkILxMgWMMTjhEbN+xq9lpSAHiYxheqs0fF9cOwdIaEELB891c+Jz9nXEfeeeLRYD4a88pYrYshGXbNHELQLi4xylathSaqnW0qQBxFHNHVASF0Iwv+h59/GdKDsZHaBiGIPC37xb1KXHL7xYFBIiqhRTQNK/qgBSwKaAWxKabQiVRQIAkMbSKaVNAgNh0U6gkCgiQJIZWMW0KCBCbbgqVRAEBksTQKqZNAQFi002hkiggQJIYWsW0KSBAbLopVBIFBEgSQ6uYNgUEiE03hUqiwP8ALczt5428ASUAAAAASUVORK5CYII="
            let image4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAANmElEQVR4Xu2dC9BuUxnHf0jkVu6XTNQkIoUQIRW5lUrFNMWkkS4muTWVa7kkNSUjk+4XpelCo8RQRkouJQyj64QkohKiQ0mav7OO853L933v3vtd+91rPf81880355z9rLWe37P+53333ms9zxK4mYAJTEtgCbMxAROYnoAF4tVhAjMQsEC8PEzAAvEaMIF2BPwJ0o6brYIQsECCBNputiNggbTjZqsgBCyQIIG2m+0IWCDtuNkqCAELJEig7WY7AhZIO262CkLAAgkSaLvZjoAF0o6brYIQsECCBNputiNggbTjZqsgBCyQIIG2m+0IWCDtuNkqCAELJEig7WY7AhZIO262CkLAAgkSaLvZjoAF0o6brYIQsECCBNputiNggbTjZqsgBCyQIIG2m+0IWCDtuHWxWg94EfB8YHVglfR7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YvXnSt0B033FrKnncm5MeqBoCSkuklEy9tb4F8ql0wKk3Bz1QdQSUjea8vrzqUyDrAbcAS/blnMepkoAyQW7Tl2d9CuRM4J19OeZxqiawJXBtHx72JZAnA/dVkNe2j5h4jNkJ6ODcwbNf1v2KvgSyO6AXPm4mMA4Cd6XdF9nPuPclEGW3OGwcZNyHCSQCzwOUOSVr60sgejy3Q1ZP3Hk0AnrRrGR1WVtfAlHmPe/WzRrKcJ2fAhyZ2+u+BKKkxypL5mYC4yKgMyP7jKuz6frpSyA3Az4MlTuasfrXMQmVw8va+hKIikw+J6sn7jwaAa0pHbbL2iyQrHjdeUYCFkhGuO66fAIWSPkxtAcZCVggGeG66/IJWCDlx9AeZCRggWSE667LJ2CBlB9De5CRgAWSEa67Lp+ABVJ+DO1BRgIWSEa47rp8AhZI+TG0BxkJWCAZ4brr8glYIOXH0B5kJGCBZITrrssnYIGUH0N7kJGABZIRrrsun4AFUn4M7UFGAlUJROlZNs4Iy13HI6A1pdQ/WVtfJwpVb26nrJ6482gELgZ2y+10XwI5flIVgnIDdP8TI3A0cHLu0fsSiIp1KrP7Mrkdcv8hCMwB1geUby1r60sgckLJhk/P6o07j0Kgl6yKgtmnQDSe8vMqT6+bCbQh8CBwKPDFNsZtbPoWiOaoDIsq67tFerK1VJuJ2yYMgUeBG4GrAN2Y39+n55MQSJ/+eSwT6ETAAumEz8a1E7BAao+w/etEwALphM/GtROwQGqPsP3rRMAC6YTPxrUTsEBqj7D960TAAumEz8a1E7BAao+w/etEwALphM/GtROwQGqPsP3rRMAC6YTPxrUTsEBqj7D960TAAumEz8a1E7BAao+w/etEwALphM/GtROwQGqPsP3rRMAC6YTPxrUTsEBqj7D960TAAumEz8a1E7BAao+w/etEwALphM/GtROwQGqPsP3rRMAC6YTPxrUTsEBqj7D960Tg/33rgtis1jfmAAAAAElFTkSuQmCC"
            var maskImage = new Image();
            maskImage.src = image3

            function createRandomItemStyle() {
                return {
                    normal: {
                        color: 'rgb(' + [
                            Math.round(Math.random() * 160),
                            Math.round(Math.random() * 160),
                            Math.round(Math.random() * 160)
                        ].join(',') + ')'
                    }
                };
            }
            let text = ['Sam','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Macys','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Schumer','Jurassic','Charter','Chick','Planet','Pitch Perfect','Express','Home','Depp','Lena','Lewis','KXAN','Mary','Farrah','Rita','Serena','NCAA tournament','Point','Macys','Schumer','Jurassic','Charter','Chick','Planet','Pitch Perfect','Express','Home','Depp','Lena','Lewis','KXAN','Mary','Farrah','Rita','Serena','NCAA tournament','Point']
            let data = [];
            for(var i = 0; i < text.length; i++){
                let obj = {};
                obj.name = text[i];
                obj.value = Math.random()*3;
                data.push(obj)
            }
            console.log(data)
            let option = {
                title: {
                    text: 'Google Trends',
                    link: ''
                },
                tooltip: {
                    show: true
                },
                series: [{
                    name: 'Google Trends',
                    type: 'wordCloud',
                    gridSize: 1,
                    sizeRange: [10, 20],
                    rotationRange: [-45, 0, 45, 90],
                    textPadding: 0,
                    maskImage:maskImage,
                    height:'900px',
                    width:'900px',
                    autoSize: {
                        enable: true,
                        minSize: 1
                    },
                     textStyle: {//文字样式设置
                        normal: {
                            color: function() {//颜色
                                return 'rgb(' + [//返回随机生成的颜色
                                    Math.round(Math.random() * 160),
                                    Math.round(Math.random() * 160),
                                    Math.round(Math.random() * 160)
                                ].join(',') + ')';
                            }
                        },
                        emphasis: {//鼠标划入样式
                            shadowBlur: 10,//文字阴影模糊度
                            shadowColor: '#333'//文字阴影颜色
                        }
                    },
                    data:data
                }]
            }
            wordCloud.setOption(option)
        }
        
    }
}
</script>

 注意,可以根据text数据的多少,和文字size调节字符云的显示,达到一个合适的范围,这个需要自己调节

【右上角点个赞,谢谢】

Logo

前往低代码交流专区

更多推荐