Sankey does not maintain node order, resulting in unnecessary crossing of lines #5684
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
Similar to what was described in #815 (for flowchart diagrams) and #5464 (for Sankey with labels), Mermaid JS decided to alter the order of the G and H nodes in my Sankey diagram without labels, hence resulting in crossing lines.
Steps to reproduce
Use the following Sankey definition with the latest MermaidJS and notice how H and G unnecessarily cut each other
Screenshots
Code Sample
No response
Setup
mmdc
) on Fedora LinuxSuggested Solutions
Mermaid should stick to the order in which nodes are defined, especially in Sankey diagrams.
Additional Context
No response
The text was updated successfully, but these errors were encountered: