https://kotlinlang.org logo
#compose
Title
# compose
j

John O'Reilly

10/27/2023, 11:05 AM
Anyone aware of a library/sample code etc that displays a word cloud using Compose?
h

hamzaTheDev

10/27/2023, 11:10 AM
👍 1
mind blown 1
❤️ 1
j

John O'Reilly

10/27/2023, 11:12 AM
ah, nice, thanks
looks like that "just" shows the tags.....wanted more something like word cloud ("an image composed of words used in a particular text or subject, in which the size of each word indicates its frequency or importance.")
though I might be missing something....just judging from examples they show
h

hamzaTheDev

10/27/2023, 2:08 PM
I haven't used this library. But even if it's missing, this feature is very doable, you can modify the lib to add this function that takes the frequency of words into account.
o

Oleksandr Balan

10/27/2023, 2:09 PM
Yeap,
tagcloud
is more like 3D cloud with interactions. But WordCloud is a bit different concept.
Maybe someone could migrate this javascript lib 👀 https://github.com/jasondavies/d3-cloud https://www.jasondavies.com/wordcloud/
👍 1
2 Views