You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Mermaid and trying out the Sankey diagram that is in beta. It's great, but I'm trying to figure out how the vertical ordering of nodes is defined. It appears as if the order they appear in the source data usually defines its position, but that sometimes maybe the order they were created plays into it or the number of nodes it goes through?
This can result in overlapping links that could be neater either automatically, or by letting me decide the ordering of the nodes.
Here's a bogus example, in which the links Oranges > K > Monkeys would best appear at the top in order to not overlap. Also all of the links that go to Monkey could avoid being overlapping with the Elephants ones by ordering them differently.
`sankey-beta
Oranges, K, 2
K, Monkey, 2
Bananas, A, 5
Bananas, B, 1
C, Monkey, 2
Bananas, D, 1
Bananas, E, 1
Bananas, F, 1
Bananas, G, 1
Bananas, C, 2
Bananas, H, 1
Bananas, I, 3
Bananas, J, 1
A, Monkey, 5
B, Monkey, 1
D, Monkey, 1
E, Monkey, 1
F, Monkey, 1
G, Monkey, 1
H, Elephant,1
I, Elephant, 3
J, Elephant,1
Bananas, Elephant, 3
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm new to Mermaid and trying out the Sankey diagram that is in beta. It's great, but I'm trying to figure out how the vertical ordering of nodes is defined. It appears as if the order they appear in the source data usually defines its position, but that sometimes maybe the order they were created plays into it or the number of nodes it goes through?
This can result in overlapping links that could be neater either automatically, or by letting me decide the ordering of the nodes.
Here's a bogus example, in which the links Oranges > K > Monkeys would best appear at the top in order to not overlap. Also all of the links that go to Monkey could avoid being overlapping with the Elephants ones by ordering them differently.
`sankey-beta
Oranges, K, 2
K, Monkey, 2
Bananas, A, 5
Bananas, B, 1
C, Monkey, 2
Bananas, D, 1
Bananas, E, 1
Bananas, F, 1
Bananas, G, 1
Bananas, C, 2
Bananas, H, 1
Bananas, I, 3
Bananas, J, 1
A, Monkey, 5
B, Monkey, 1
D, Monkey, 1
E, Monkey, 1
F, Monkey, 1
G, Monkey, 1
H, Elephant,1
I, Elephant, 3
J, Elephant,1
Bananas, Elephant, 3
Monkey, Destination, 14
Elephant, Destination, 8`
Beta Was this translation helpful? Give feedback.
All reactions