You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to align B2 to B1, even if it has no children.
Normally I get this:
but I would like to get this:
This could be easily solved if issue #35 has an answer:
I would create a dummy node (say B2DUMMY) after B2, same value, transparent and flow set as "target" (so transparent). As the dummy node would have no text to show, it would be completely invisible.
In this example it is what I can get, but I need the the text B2DUMMY:100 to disappear:
The text was updated successfully, but these errors were encountered:
Nemecsek
changed the title
How to place a node without children NOT in the most right position?
How to place a node without children NOT in the rightmost position => How to completely hide a node?
Apr 18, 2018
As partial solution, I modified the library to add to each node tag (A1, A2, etc) a node label ("Hall 1", "Hall 2", etc.).
Now:
The label can be multiline, with first line as title, as proposed in Tag and text #35.
Associating to a node tag an empty node label, no text is shown: in my case, "B2DUMMY: 100" just disappears.
The values to print can be chosen programmatically, something very useful in my case because I need to print some extra data for each node.
Alas, I am a real newbie with JS and my solution has been greatly patched together without skill. Upon request I can provide the modified library: perhaps somebody could properly rewrite my poor code.
An example of sankey I am producing programmatically:
This looks related to #11.
Using these data
I would like to align B2 to B1, even if it has no children.
Normally I get this:

but I would like to get this:

This could be easily solved if issue #35 has an answer:
I would create a dummy node (say B2DUMMY) after B2, same value, transparent and flow set as "target" (so transparent). As the dummy node would have no text to show, it would be completely invisible.
In this example it is what I can get, but I need the the text
B2DUMMY:100
to disappear:The text was updated successfully, but these errors were encountered: