-
Notifications
You must be signed in to change notification settings - Fork 183
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
jsnetworkx.js:5 Uncaught TypeError: Cannot read property 'force' of undefined #62
Comments
Hey, I was experiencing the same issue and downgrading d3 version was the solution for me. |
Downgrading d3 resulted in a different error for me:
I tried implementing ScientiaEtVeritas's example and also some examples from the jsnetworkx.org page. |
Are you certain that you did pass a correct element to the
so it appears to me that the canvas element you have created in your HTML DOM does not have an id I cannot provide more suggestions, because I have not yet received a similar error. |
i m facing same problem... |
Downgrading d3 also solved this issue for me |
My code is simple.... but still this is the issue...
Error is Uncaught TypeError: Cannot read property 'getComputedStyle' of null |
just a wild guess here: shouldn't you declare the div you want to draw in BEFORE drawing on it? |
thanks for your reply.... ITS WORKING....:) Thanks |
i just tried your code - got the same error - moved the div above the script tag and everything ran fine |
Yes.... Some time over load work can make you behave like idiot...:) |
I have the same problem. I can downgrade to d3 v3, but then I get the error: im using |
Hi, I'm trying to draw the graph, but always get this error:
jsnetworkx.js:5 Uncaught TypeError: Cannot read property 'force' of undefined
Even if I try sth. like this:
` G = new jsnx.Graph();
Does someone have an idea what's the reason for this?
D3 is included.
Thanks in advance.
The text was updated successfully, but these errors were encountered: