Nested Subgraphs #4291
-
Hello, i'm trying to create flowcharts with multiple nested subgraphs but for some reason something in the syntax seems wrong. And i tested some other variations and got it to work, but i can't really grasp why it works. flowchart TB but the resulting flowchart is none and i get a syntax error in graph So i kinda got it to work after adding a Process Node in subgraph A or subgraph B flowchart TB It also works if i declare the subgraph id in the previous subgraph flowchart TB But if possible i'd really like to use my first code. So is this a problem with my Syntax or from Mermaid? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's strange It seems dagre(renderer)'s probrem dagrejs/dagre#236 with elk works (use %%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
flowchart TB
subgraph A
subgraph B
subgraph C
subgraph D
p1-->p2
p2-->p3
p3-->E
subgraph E
p4[1]
end
end
end
end
end
|
Beta Was this translation helpful? Give feedback.
It's strange
It seems dagre(renderer)'s probrem dagrejs/dagre#236
error is
Cannot set properties of undefined (setting 'rank')
with elk works (use
%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
)