1.0.6 • Published 5 years ago
lifeweb-wordcloud-v3 v1.0.6
lifeweb wordcloud v3
npm i lifeweb-wordcloud-v3import WordcloudV3 from 'lifeweb-wordcloud-v3'
// your component details ...
render() {
<WordcloudV3
data=[
{word:'word 1',count:7},
{word:'word 2',count:5},
{word:'word 3',count:2}
]
/>
}props
| props | type | default |
|---|---|---|
| data | array | {word: '', count:0} |
| urlKey | string | '' |
| baseUrl | string | undefined |
| target | string | '_blank' |
| labelKey | string | 'word' |
| valueKey | string | 'count' |
| onClick | function | (text) => true |
| showTooltip | boolean | true |
| width | number | 300 |
| height | number | 300 |
| wordCount | number | 100 |
| mouseOverColor | string | 'rgb(0 , 100 , 0)' |
| wordColors | array | '#1f77b4', '#2ca02c', '#0b3d48', '#9467bd', '#8c564b' |
| className | string | '' |
| style | object | {} |
author
Porya Ebrahimi Kazaj