jasondavies / d3-cloud

Create word clouds in JavaScript.
https://www.jasondavies.com/wordcloud/
Other
3.82k stars 1.08k forks source link

Is it possible to support 'multi line' words #189

Open Offbeatmammal opened 5 months ago

Offbeatmammal commented 5 months ago

my scenario is that I want to have something like a country name and on a second line (but treated as part of the same block) something like population or gender %ages etc looking at this it seems to assume there's no break/wrapping and each word is just that added complication is that I'd eventually like to see if flow through as an extension to https://github.com/sgratzl/chartjs-chart-wordcloud and let me format each line separately (so relative font controlled line by line, possibly with a max font size, and a min font size when scaling that drops the second line)