jasondavies / d3-cloud

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

Add an option to limit the step function execution time #51

Closed JacquiManzi closed 9 years ago

JacquiManzi commented 9 years ago

Large data sets can cause the word cloud to spend a lot of time in the step function before drawing the final outcome. A maximum time limit option would be a nice addition.

I submitted a pull request with my own interpretation of this option.

jasondavies commented 9 years ago

Sorry about the lack of documentation, but I think cloud.timeInterval achieves a similar result, by limiting the amount of time spent in the step function. Does that solve your issue? Feel free to reopen if you think your approach is better!

JacquiManzi commented 9 years ago

Yes! That is exactly what I need, I will use cloud.timeInterval instead.

Thanks!