We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a300fe commit e4f4651Copy full SHA for e4f4651
1 file changed
_pages/wc.md
@@ -56,9 +56,9 @@ description: Word cloud visualization of blog posts by year.
56
.then(words => {
57
WordCloud(canvas, {
58
list: words,
59
- gridSize: Math.round(16 * $('#canvas').width() / 1024),
+ gridSize: Math.round(16 * canvas.width() / 1024),
60
weightFactor: function (size) {
61
- return Math.pow(size, 2.3) * $('#canvas').width() / 1024;
+ return Math.pow(size, 2.3) * canvas.width() / 1024;
62
},
63
fontFamily: 'Arial',
64
color: 'random-dark',
0 commit comments