Skip to content
This repository

Create word clouds in JavaScript.

branch: master

Remove require from main layout file.

This also includes a backwards-incompatible change to module naming when
used with Node.js: instead of require("d3-cloud").cloud, you should now
use require("d3-cloud") directly.

Fixes #28.
latest commit a81e468c68
Jason Davies authored
Octocat-spinner-32 examples Fix #18: variable padding. June 18, 2013
Octocat-spinner-32 lib Initial import. February 08, 2012
Octocat-spinner-32 LICENSE Update copyright year. June 21, 2013
Octocat-spinner-32 README.md Better image link. February 09, 2012
Octocat-spinner-32 d3.layout.cloud.js Remove require from main layout file. January 10, 2014
Octocat-spinner-32 index.js Remove require from main layout file. January 10, 2014
Octocat-spinner-32 package.json Remove require from main layout file. January 10, 2014
README.md

Word Cloud Layout

This is a Wordle-inspired word cloud layout written in JavaScript. It uses HTML5 canvas and sprite masks to achieve near-interactive speeds.

See here for an interactive demonstration along with implementation details.

Example cloud of Twitter search results for “amazing”

Usage

See the samples in examples/.

This layout requires D3. It’s similar to d3.layout.force, in that it’s asynchronous and stateful.

Something went wrong with that request. Please try again.