I adopted the trick from
d3 sankey charts - manually position node along x axis
to manually control the x-position of my nodes. But many of the links end up crossing over each other:
(I set the node widths to zero). I know a Sankey diagram with no link overlaps can be achieved, because the data corresponds to a dendrogram.
Increasing the number of iterations in the .layout(...) command does not solve the problem. Can someone please help?