1.0.6 • Published 5 years ago
vue-wordcloud-echarts v1.0.6
vue-wordcloud-echarts
Description
vue echarts 词云组件
1,npm install vue-wordcloud-echarts --save 2,页面中引入 import wordcloud-echarts from 'vue-wordcloud-echarts'; 3,示例使用
<div v-for="(item, index) in [1, 2, 3, 4, 5]" :key="index">
<wordcloud
:key="index"
:options="options"
:src="image"
width="300px"
height="300px"
></wordcloud>
</div>vue 词云组件
| props | 类型 | 是否必传 | 描述 | default |
|---|---|---|---|---|
| options | Array | true | 词云数据 | [] |
| image | String | true | 词云背景图 | '' |
| width | String | false | 词云宽度 | 500px |
| height | String | false | 词云高度 | 500px |
options
| 参数 | 类型 | 描述 |
|---|---|---|
| name | string | 词云类目名称 |
| value | number | 词云数量 |