Skip to content

Instantly share code, notes, and snippets.

View ameyms's full-sized avatar

Amey Sakhadeo ameyms

View GitHub Profile
@ameyms
ameyms / cloud.js
Last active July 25, 2017 17:36 — forked from blockspring/cloud.js
D3 Wordcloud
// Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/
// Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf
(function() {
function cloud() {
var size = [256, 256],
text = cloudText,
font = cloudFont,
fontSize = cloudFontSize,
fontStyle = cloudFontNormal,
fontWeight = cloudFontNormal,