mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
72.59k stars 6.62k forks source link

Control the direction of flowcharts in Mermaid #5619

Open JamesMcIntyre100 opened 4 months ago

JamesMcIntyre100 commented 4 months ago

Problem

Proposed Solution

Additional context

This matter is dicussed on the below stack overflow question and user lys (Commented Dec 22, 2022 at 2:00) seems to talk about the technical implamentation possiblity.

https://stackoverflow.com/questions/66631182/can-i-control-the-direction-of-flowcharts-in-mermaid

sidharthv96 commented 4 months ago

The newly introduced Block diagrams will allow you to place the nodes in a more granular fashion.

Refer to this answer for an example.

Due to how the layout algorithms work, we cannot specify direction per arrow in normal flowchart. We are making some changes to allow more algorithms, but something like this is out of scope.