Open StrijnKames opened 6 years ago
Hi, glad you're finding it useful, and thanks for reporting this! I think it's a bug. Here's a simple example that shows the same problem. The problem is with links that go between nodes in the same "layer"/"rank", i.e. nodes that are vertically above and below each other.
A workaround would be to add an intermediate node with direction: 'l'
, like this example. You could do this by hand, or else I don't know if you've seen floWeaver -- it provides a framework for specifying & aggregating these kinds of intermediate nodes, as well as giving you some more powerful aggregation and grouping, which might be useful for this kind of data.
Steps needed to fix:
test/linkPath-test.js
, with two nodes with the same x coordinate, checking that the link leaves & enters from the appropriate side.src/linkPath.js
Hi @ricklupton,
thanks for the answers I will look into this as soon as possible!
Hi @ricklupton ,
Really great visualization!
When grouping nodes the direction of the links seem to do whatever direction suits best. I would like them to always go right side out left side in. In many cases this is going OK but in this example the diagram doing it (for me) the wrong way.
Is there any way in correcting this?
I tried direction: "r" on the nodes with no success.
This is part(!) of my JSON:"