sgratzl / chartjs-chart-wordcloud

Chart.js Word Clouds
https://www.sgratzl.com/chartjs-chart-wordcloud/
MIT License
93 stars 16 forks source link

Windows vs macOS / iOS rendering #73

Open Offbeatmammal opened 2 months ago

Offbeatmammal commented 2 months ago

using the example at https://www.sgratzl.com/chartjs-chart-wordcloud/examples/

on PC I get no overlap:

image

same test on macOS (Safari, Chrome) and iOS (Safari) the words overlap:

image

is there anything I should be passing in when I instantiate the chart to help it cope with platform differences?

sgratzl commented 2 months ago

my guess the different systems have different DPIs in addition there is some randomness going on when it comes to rotation, so each time you run it without fixing the random seed it might result in a different result.