I have problems with the arrangement of nodes.
This is the code I’m using:
fig = go.Figure(
data=[
go.Sankey(
arrangement="freeform",
node=dict(
# pad=15,
thickness=20,
line=dict(color="black", width=0.5),
label=nodelabels,
x=nodes_x,
y=nodes_y,
),
link=dict(
source=table["source"],
target=table["target"],
value=table["value"],
),
)
]
)
These are the values of labels, x and y:
[('unknown', 0.0, 0.0), ('raw', 0.0, 0.5), ('unreadable', 0.2, 0.0), ('readable', 0.4, 0.0), ('unprocessed', 0.6, 0.0), ('processed', 0.8, 0.0)]
This is the outcome:
The relative x position is not what I specified. “unreadable” should be left of “readable” (0.2<0.4), “unprocessed” should be left of “processed” (0.6<0.8).
Like in the following picture (aligned manually):
How can I achieve this?

