IjzerenHein / react-tag-cloud

Create beautiful tag/word clouds using React ☁️
https://react-tag-cloud.stackblitz.io/
MIT License
117 stars 27 forks source link

Possible to prevent words from being cut from the cloud? #7

Closed KosGrillis closed 5 years ago

KosGrillis commented 6 years ago

I've noticed that if a word/phrase in the cloud is either too long or has too large a font for the word cloud container, it is not displayed. Is there a way to prevent this?

IjzerenHein commented 6 years ago

Hi Kos. Not sure how to prevent this. The layouting is handled by the underlying d3-cloud component so I have very little control over it. What you could do is to make the size of the component larger and clip the excess content with overflow: hidden