每日学习
今天学习热词云的使用,做个人作业2
这里需要导入热词云的包,不过上网找包发现有时候一些包是不能使用的。
所以这里上传我所用的一个包:
链接:https://pan.baidu.com/s/1Rxf1prg78wayOv_7_jmj_g
提取码:h4b6
已经上传到百度文库,有需要可以下载
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | myChart.setOption({ title: { text: '最新热词统计' }, tooltip: {}, series: [{ type : 'wordCloud' , //类型为字符云 shape: 'smooth' , //平滑 gridSize : 8 , //网格尺寸 size : [ '50%' , '50%' ], //sizeRange : [ 50, 100 ], rotationRange : [- 45 , 0 , 45 , 90 ], //旋转范围 textStyle : { normal : { fontFamily: '微软雅黑' , color: function() { return 'rgb(' + Math.round(Math.random() * 255 ) + ', ' + Math.round(Math.random() * 255 ) + ', ' + Math.round(Math.random() * 255 ) + ')' } }, emphasis : { shadowBlur : 5 , //阴影距离 shadowColor : '#333' //阴影颜色 } }, left: 'center' , top: 'center' , right: null , bottom: null , width: '100%' , height: '100%' , data:mydata }] }); |
这是我的一些代码
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步