Lchiffon / wordcloud2

R interface to wordcloud for data visualization.
396 stars 107 forks source link

Fix bug when there is only one input word #75

Closed JustinCCYap closed 1 year ago

JustinCCYap commented 3 years ago

When there is a single word, the following error occurs:

Uncaught TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Value is not of type 'long'.

This PR fixes this