My diagram is complex, with 189 nodes. But I expected the layout to be more logical, based on the flow of data from source to target. It is completely circuitous and loopy.
These are trades flowing through an algo trading system, so there are entries, targets, and stops. I expected there to be a natural layout with entries on the left, targets in the middle, and final exits on the right. To a certain extent, the entries and stops happened that way, but the middle is a mess. The actual data flows more logically than the way this diagram depicts.
For example, there are flows from ratchet bracket 1 to ratchet bracket 2 to ratchet bracket 3, so I assumed that these would appear in order from left to right, but they do not. The same with grab cents 1, 2, and 3.
Is there any way to coax Plotly into rendering this in a more logical, flow-based way? Or can I somehow influence the placement by ordering the lists that feed the diagram? Is there another Sankey implementation that might handle this better? I am doing this in Google Colab.