-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
Good first issue!Graph: FlowType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrect
Description
Description
https://mermaid.js.org/syntax/flowchart.html#direction states
Possible FlowChart orientations are:
- TB - Top to bottom
- TD - Top-down/ same as top to bottom
However, TB vs. TD gives different results for subgraphs, as shown in the attached images.
Is the documentation wrong, or is one of these results unexpected?
Steps to reproduce
flowchart TB
subgraph one
a2
a1
end
subgraph two
b2
b1
end
a1 --> a2
b1 --> b2
one --> two
flowchart TD
subgraph one
a2
a1
end
subgraph two
b2
b1
end
a1 --> a2
b1 --> b2
one --> two
I confirmed this result in Live Editor - Develop - sample
Screenshots
No response
Code Sample
Setup
- Mermaid version: Live Editor, v11.6.0 - as well as the Develop version (as of today, 6/23/25)
- Browser and Version: Chrome 137.0.7151.123
Suggested Solutions
No response
Additional Context
No response
Metadata
Metadata
Assignees
Labels
Good first issue!Graph: FlowType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrect