JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17223
  • Score
    100M100P100Q136661F
  • License MIT

a word cloud component using d3-cloud

Package Exports

  • react-d3-cloud

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-d3-cloud) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-d3-cloud

A word cloud react component using d3-cloud

usage

npm install react-d3-cloud
import WordCloud from 'react-d3-cloud'

const data = {
  word1: 100,
  word2: 200,
}
<WordCloud data={data} />

build

npm run build

Test

pre-install

sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
npm install

Run test

npm test