-
Notifications
You must be signed in to change notification settings - Fork 42
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
TypeError: Cannot read property 'filter' of undefined in johnson.js #40
Comments
Faced the same problem. After some investigation, it looks like the non-connected nodes will leave a gap in the indices of the edges array in jonhson.js https://github.com/antoinerg/elementary-circuits-directed-graph/blob/master/johnson.js#L72
As a workaround, create an invisible node with invisible links to the non-connected nodes, and just don't draw those invisible node/links. |
@HusseinElMotayam could you please open an issue over at https://github.com/antoinerg/elementary-circuits-directed-graph so we can fix the problem there? Thank you |
@antoinerg I logged it there. Thank you. |
I use d3@5. Use this example https://bl.ocks.org/tomshanley/a434d47dc7ff983c764ccc555e89e295
data
And sankeyData not generated, but throw the error
johnson.js
And if i change
nodeId
tod => d.index
(insteadd => d.name
) this error disappears and another appearsThe text was updated successfully, but these errors were encountered: