Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control the direction of flowcharts in Mermaid #5619

Open
JamesMcIntyre100 opened this issue Jul 2, 2024 · 1 comment
Open

Control the direction of flowcharts in Mermaid #5619

JamesMcIntyre100 opened this issue Jul 2, 2024 · 1 comment
Labels
Close after 30 days Close issue if no response after 30 days Type: Question

Comments

@JamesMcIntyre100
Copy link

Problem

  • I'm always frustrated when I try to create a flow chart which fits on a peice of paper because I can't control the direction of the arrows.
  • I would like it if you could choose which direction the arrows and the next node appeared when I add a new node because I need my flow charts to fit within printable documents which have edges and keys etc which have to be avoided and fit around.

Proposed Solution

  • Add an option so that when you add a new node and an arrow with a different direction, this new direction arrow will be used will be used

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

@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Jul 2, 2024
@sidharthv96
Copy link
Member

sidharthv96 commented Jul 7, 2024

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.

@sidharthv96 sidharthv96 added Type: Question Close after 30 days Close issue if no response after 30 days and removed Status: Triage Needs to be verified, categorized, etc labels Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Close after 30 days Close issue if no response after 30 days Type: Question
Projects
None yet
Development

No branches or pull requests

2 participants