Lchiffon / wordcloud2

R interface to wordcloud for data visualization.
397 stars 113 forks source link

Fix bug when there is only one input word #75

Closed JustinCCYap closed 1 year ago

JustinCCYap commented 2 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