Black Lives Matter. Please consider donating to Black Girls Code today.

Sankey node with no targets

Any node that does not have any targets in my Sankey diagram gets located all the way to the right, even though I have explicitly defined what it’s x position should be. Is there a way to control the x position of a node that doesn’t have any outgoing targets?

In the picture above, the number at the end of the label defines where the node should be located.

Thank you!

Are you defining both the x and y coordinates?
AFAIK, only giving the x coordinate has no effect

1 Like

I was only defining the x coordinates. This fixed the problem. Thank you!

Is there a way to define the y coordinates as default or do I need to give explicit values?

I haven’t found a way to avoid calculating myself both x and y coordinates