jasondavies / d3-cloud

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

Is There a way to get consistent results for the largest contributors to the wordcloud #143

Closed owendall closed 6 years ago

owendall commented 6 years ago

See my post:

https://groups.google.com/forum/#!topic/vega-js/sG_5Bq6-z7w

owendall commented 6 years ago

Refreshing the wordcloud can remove some key items randomly:

wordcloud-three-different-results

jasondavies commented 6 years ago

You can override the random number generator using cloud.random if you need consistent results (e.g. try a seeded RNG).

owendall commented 6 years ago

thanks for that, Jason. Will try that out.