Socket
Socket
Sign inDemoInstall

word-cloud-react

Package Overview
Dependencies
6
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    word-cloud-react

A library of to show React cohort graph ## Installation Run the following command: `npm start`


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Word Cloud React · GitHub license

A library of to show React cohort graph

Installation

Run the following command: npm start

How to use:

Install Package
npm i word-cloud-react --save

import in your react component:
import { WordCloud } from "word-cloud-react";

Use it as: <WordCloud width={"auto"} data={ [{"value":1811,"word":"hey"},{"value":486,"word":"service"},{"value":433,"word":"recipe"},{"value":390,"word":"feature"},{"value":280,"word":"item"},{"value":277,"word":"type"}] } color={['#71803F', '#F8AC1D','#598EC0','#E2543E','#1A3051','#F46F73','#8A87BB','#56CFCD','#297373','#FF8552','#F2E863','#C2F8CB','#3A6EA5','#FF6700','#C0C0C0','#4E4381','#523CBD',]}/>

Props:

width: auto | number , PropType: String | Integer

data: [{"value": 100, "word": "hi},{"value": 150, "word": "hello}] , PropType: Array

color: ['#71803F', '#F8AC1D'] , PropType: Array

clickEvent={(x)=>console.log(x.word)}

Color Schemes:

color={['#71803F', '#F8AC1D','#598EC0','#E2543E','#1A3051','#F46F73','#8A87BB','#56CFCD','#297373','#FF8552','#F2E863','#C2F8CB','#3A6EA5','#FF6700','#C0C0C0','#4E4381','#523CBD',]
Please visit: https://coolors.co to generate your color theme for word cloud. More you add color to the array more different color will appear randomly

FAQs

Last updated on 17 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc