echarts3wordCloud单词重叠

echarts3wordCloud单词重叠

clipboard.png
示例

    代码:
        myChart1.setOption({
            title: {
                text: '词云图',
                backgroundColor: '#a2ddff'
            },
            tootip: {
                show: true
            },
            series: {
                name: '词云图',
                type: 'wordCloud',
                textStyle: {
                    normal: {
                        color: function () {
                            return 'rgb(' + [
                                Math.round(Math.random() * 160),
                                Math.round(Math.random() * 160),
                                Math.round(Math.random() * 160)
                            ].join(',') + ')'
                        }
                    }
                },
                textRotation: [0, 90, -45, 45],
                autoSize: true,
                data: data.dataCloud
            }
        })
阅读 4.7k
1 个回答

建议可以用jqcloud代替 echarts的字符云
样式比较灵活 可以自己定义 包括颜色、位置、字符大小

链接:http://pan.baidu.com/s/1geTzDjt 密码:wuai
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进