-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error on align types #34
Comments
Hi @harisbal, thanks for the issue and sorry for the slow reply! Yes, you're right this is probably in JS rather than Python -- specifically probably in the d3-sankey-diagram package, which ipysankeywidget wraps around. What happens is that the So I would probably start by testing directly in d3-sankey-diagram whether you see the same issue, using a list of links with d1 = [
{'source': 'start', 'target': 'E02000314_1', 'value': 32.0, 'sourcePort': 't41037', 'targetPort': 't41037'},
...
] Hope that makes sense. If you're still up for trying to find a solution, please do have a go and ask if anything's not clear! You might find the example here useful for setting up a test with d3-sankey-diagram. |
Update: I think it's not the numbers in the type name that are the issue, it's just the sort order of the type names.
I'm not sure at the moment how this is causing a problem. |
Hi @ricklupton |
Moreover, how could I test my changes to js in the ipysankeywidget. Modifying js files in js/lib does not seem to have any effect. |
Hi @harisbal, thanks for looking into it more! "Dummy nodes" are used to deal with links that skip across layers. For example in this graph:
The long link from a to c would potentially overlap with node b if it was drawn straight from a to c. So the graph is transformed by adding dummy nodes (*) to make each link go between only adjacent layers:
I'm not sure exactly how that would affect the problem you're seeing. It does lose the connection between link order at either end of long links. I'm hoping to have time to look more at this in the next couple of weeks. Have you made any progress?
No problem! |
Hello,
I'm facing a weird bug when I try to align different links. It seems that for some reason including numbers in the type name causes some issues.
Example:
The following doesn't work properly
while this does:
I'm happy to try and find a solution but I'd need some initial guidance as to where I should look for. I have a feeling this is an issue of js rather than python right?
Cheers
The text was updated successfully, but these errors were encountered: