Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser crashes if #size is passed 0 for width/height #104

Open
stefanpearson opened this issue Oct 7, 2016 · 0 comments
Open

Browser crashes if #size is passed 0 for width/height #104

stefanpearson opened this issue Oct 7, 2016 · 0 comments
Labels

Comments

@stefanpearson
Copy link

After stepping through each line of code until I encountered the crash, I realised there were some crazy numbers while attempting to calculate positioning (-169827 or something…). I realised I was was accidentally passing height a 0 value. It could be worth throwing an error when the size method is called 😊.

var myCloud = d3Cloud()
    .size([1920, 0]);


💀
@jasondavies jasondavies added the bug label Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants