NP Cloudecharts wordCloud配置项内容和展示

NP cloud

配置项如下
      var toothbrush_method_verb_json = "/asset/get/s/data-1540350950635-SNTZFRdty.json";

var np_adj_json = "/asset/get/s/data-1533719982681-BkPhBV_r7.json";

var np_verb_json = "/asset/get/s/data-1533697515318-B1XeC0PH7.json";

var verb_json = "/asset/get/s/data-1533610473935-HJzxcF8H7.json";

var adj_json = "/asset/get/s/data-1533608887164-B1Jp7Y8HX.json";

var np_json = "/asset/get/s/data-1533565707300-ByXMsRSSm.json";
var np_data = []

$.getJSON(toothbrush_method_verb_json, function (data) {
    console.log(data)
    np_data = data
    myChart.setOption({
        series: [{
            data: np_data
        }]
    })
});

option = {
    title:{
        text:"Innovation Cloud (Toothbrush.InventionObj)",
        link:'https://github.com/ecomfe/echarts-wordcloud',
        subtext: 'Innovation cloud',
        sublink:'',
    },
    tooltip: {},
    series: [{
        type: 'wordCloud',
        gridSize: 20,
        sizeRange: [12, 50],
        rotationRange: [0, 0],
        shape: 'circle',
        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: []
    }]
};
    
截图如下