I came across this solution for controlling the x-position of nodes in D3 Sankey diagrams:
d3 sankey charts - manually position node along x axis
I made the appropriate modifications to the code and to my data, but some of the nodes appear on the right edge when they should be appearing on the left. Below is the result I get:
All of the nodes with a single number have xPos=0 in the data, but some are showing up with xPos=2. What am I doing wrong?