wordcloud2.js
Demo
Code
README
API
timdream
wordcloud2.js
, tag cloud/Wordle presentation on 2D canvas or HTML
Your browser is not supported.
Run
Canvas
Elements
Save Image
......
Examples
Love of the world
Web Technologies
The quick brown fox
Les Misérables
紅樓夢
Taiwan
List
Configuration
Dimension
Mask image
Web Font
Options as a literal Javascript object
See
API
document for available options.
Width
px
Leave blank to use page width.
Height
px
Leave blank to use 0.65x of the width.
Device pixel density (
dppx
)
x
Adjust the weight, grid size, and canvas pixel size for high pixel density displays.
Image mask
Clear
A silhouette image which the white area will be excluded from drawing texts. The
shape
option will continue to apply as the shape of the cloud to grow.
When there is an image set,
clearCanvas
will be set to
false
.
Extra Web Font CSS
Find your favorite font on
Google Web Fonts
. Re-run if the font didn't load in time.