
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
q-fork-react-wordcloud
Advanced tools
Powerful React + D3 word cloud component with rich features.
Powerful React + D3 word cloud component with rich features. Based on the original word cloud generator: https://www.jasondavies.com/wordcloud/.
Add to package.json
with yarn
or npm
.
yarn add https://github.com/chrisrzhou/react-wordcloud.git
This is a simple example using minimal props.
import * as React from 'react';
import ReactWordCloud from 'react-wordcloud';
const words = [
{word: 'hello', value: 3},
{word: 'world', value: 1},
{word: 'github', value: 1},
{word: 'code', value: 1},
];
const WORD_COUNT_KEY = 'value';
const WORD_KEY = 'word';
const MyWordCloud = () => {
return (
<div style={{width: 600, height: 400}}>
<ReactWordCloud
words={words}
wordCountKey={WORD_COUNT_KEY}
wordKey={WORD_KEY}
/>
</div>
);
};
export default MyWordCloud;
Check out the code in this word cloud generator
to see how to use react-wordcloud
in production.
This generator allows you to tweak many properties of the word cloud component.
It also demonstrates how we can parse string into words, and bind click actions on the words to highlight their occurrences in the original text.
FAQs
Powerful React + D3 word cloud component with rich features.
The npm package q-fork-react-wordcloud receives a total of 0 weekly downloads. As such, q-fork-react-wordcloud popularity was classified as not popular.
We found that q-fork-react-wordcloud demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.