A Word/Tag Cloud Library in Typescript.I am looking for an Word/Tag Cloud Library in Typescript Until I see an amazing Cloud in Kibana.And I am not able to use it with npm install ...
easily, So I separated it out, and modify it into an Library. Maybe the origin library is tagcloud
Require Typescript
:
npm install -g typescript
npm install d3-tagcloud
Basic Usage:
import { Word, TagCloud, Options } from "d3-tagcloud";
let tagCloud = new TagCloud(theHTMlElement);
tagCloud.setOptions(opt:Options);
let tags:Word[]=[some words...]
tagCloud.setData(tags)
...
// when you need resize
tagCloud.resize();
'''
// Refresh the Data
tagCloud.setData(newTags);
git clone https://github.com/markisme/TagCloud.git
cd TagCloud
cd example
npm install
npm start
Then open in browser http://localhost:4200
And Issue or PR is Great.
- Mark Ma - markisme
This project is licensed under the MIT License - see the LICENSE file for details