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

stacked same level nodes #5715

Open
peterejkemp opened this issue Aug 15, 2024 · 0 comments
Open

stacked same level nodes #5715

peterejkemp opened this issue Aug 15, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram

Comments

@peterejkemp
Copy link

peterejkemp commented Aug 15, 2024

Proposal

Some of the diagrams I make are limited by the width of a page of paper, I need to show the same level of nodes stacked on top of each other so I can represent all nodes without them going off the side of the page

Use Cases

diagrams for print and mobile phones

Screenshots

the current implementation is like so:

f5PUuls6

when I need:

jtuaquCF

Syntax

in R qmd:

mermaid("
graph TD
    subgraph L3 Countries
        B[Russia]
        C[United Kingdom]
    end
    subgraph L2 Schools
        direction stacked
        D[School 1]
        E[School 2]
        F[School 3]
        G[School 4]
    end

    B --> D
    B --> E
    C --> F
    C --> G
")

Implementation

This is a proposal which I'd love to see built into mermaid by the wonderful community.

@peterejkemp peterejkemp added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram labels Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram
Projects
None yet
Development

No branches or pull requests

1 participant