Skip to content

Commit d5ba929

Browse files
committed
Minor changes
1 parent d8cb70b commit d5ba929

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

_pages/wc.md

Lines changed: 4 additions & 7 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="1170" height="760"></canvas>
33+
<canvas id="wordcloud" width="800" height="600"></canvas>
3434

3535
<script>
3636
const canvas = document.getElementById('wordcloud');
@@ -56,14 +56,11 @@ 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),
60-
weightFactor: function (size) {
61-
return Math.pow(size, 2.3) * canvas.width / 1024;
62-
},
59+
gridSize: 1,
60+
weightFactor: 10,
6361
fontFamily: 'Arial',
6462
color: 'random-dark',
65-
rotateRatio: 0.5,
66-
rotationSteps: 3,
63+
rotateRatio: 2,
6764
backgroundColor: '#fff'
6865
});
6966
})

0 commit comments

Comments
 (0)