lifeweb-wordcloud-v3
v1.0.7
Published
create wordcloud chart from array of object
Downloads
6
Maintainers
Readme
lifeweb wordcloud v3
npm i lifeweb-wordcloud-v3
import 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
[Lifeweb Company] [email protected]