Skip to content

Commit d8cb70b

Browse files
committed
Final tweak
1 parent e4f4651 commit d8cb70b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_pages/wc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ description: Word cloud visualization of blog posts by year.
3030
</select>
3131
</div>
3232

33-
<canvas id="wordcloud" width="2340" height="1520"></canvas>
33+
<canvas id="wordcloud" width="1170" height="760"></canvas>
3434

3535
<script>
3636
const canvas = document.getElementById('wordcloud');
@@ -56,9 +56,9 @@ description: Word cloud visualization of blog posts by year.
5656
.then(words => {
5757
WordCloud(canvas, {
5858
list: words,
59-
gridSize: Math.round(16 * canvas.width() / 1024),
59+
gridSize: Math.round(16 * canvas.width / 1024),
6060
weightFactor: function (size) {
61-
return Math.pow(size, 2.3) * canvas.width() / 1024;
61+
return Math.pow(size, 2.3) * canvas.width / 1024;
6262
},
6363
fontFamily: 'Arial',
6464
color: 'random-dark',

0 commit comments

Comments
 (0)