-
Notifications
You must be signed in to change notification settings - Fork 315
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
Uncaught error at extendBasis #100
Comments
That is probably a numerical issue in computing the basis. I would love to investigate this issue further, but I won’t be able to do so without knowing the inputs to packEnclose (or whatever pack methods you are using) so that I can reproduce the error. Please post a reduced test case that exhibits the error and I will reopen and investigate. Thank you! |
FYI I had the same Error thrown. In my case it was because I supplied a width and height of zero to pack().size([width, height]). Ultimately that was a cross-browser issue: in Firefox getting the width and height of a container with code such as svg.node().clientWidth returned 0. I fixed my issue by using svg.node().getBoundingClientRect().width instead. |
Facing same kind of issue in using d3-hierarchy for pack layout. Please check the data i am using, Checkout the error stack messages
|
Could someone tell me what would cause this error?
Uncaught Error at extendBasis (enclose.js:46)
. Not sure if this is a bug with d3-hierarchy or just the way I am using it.I am using a React component based on this which uses d3 (I have updated it to use v4). I am also using React Router to create an SPA. My Bubble chart is on the home route all works fine apart from when navigating to another route and then back again. Once one navigates back to the home route this error occurs.
Any help appreciated.
The text was updated successfully, but these errors were encountered: