3

I'm trying to draw the word cloud using wordcloud2.js:

var options = 
        {
         list : wordsSizeList,
         fontFamily: 'Finger Paint, cursive, sans-serif'
        }
WordCloud(target, options);

But my words are getting blurred (which might be because of low resolution image).

enter image description here

Wordcloud2.js uses canvas for drawing these words. So there should be some way to increase the pixel density of this canvas ?

4

1 回答 1

5

Set the size of the canvas like:

<canvas height="400" width="400" />

That should provide you a properly sized canvas (with higher resolution)

于 2015-03-11T10:13:45.530 回答