Open sildar opened 3 years ago
Hi,
I found the "align_link_types" parameter but it keeps things messy:
I would have expected A to stay in the middle. This leads to chaotic diagrams quickly when there's more data.
Hi, sorry for the late reply.
This is a limitation of the align_link_types
parameter: the link types are ordered alphabetically, not in the order that makes most sense graphically.
You can sometimes work around it by naming your types with a prefix to get them to sort in the right order: 0_B
, 1_A
, 2_C
, say.
More generally this would need substantial changes to the optimisation layout code (but it would be nice if it worked!)
Hi!
While drawing sankey diagrams, I often want to have coloring depending on type, and keep those colors all the way through the diagram. While this feature exists, it does not seem to be compatible with the order parameter.
Here's a minimal example of what I mean:
This works well, but if I want to change the ordering of, say, A and B, I can write this:
While this works, the ordering is only defined for the first layer, and the next one (between "1" and "2") is not impacted by the order parameter, making the diagram harder to read. I can't find a way to keep the ordering consistent in subsequent layers, am I missing something? I tried changing the ordering of the links structure, thinking first entries get drawn first (ie switching lines 4 and 5), but unfortunately this is not the case.
Is there any solution?