-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
can't nest subgraphs in flowchart #161
Comments
I agree that they should be nestable. Adding it to the list. Heavily involed in another project right now so the change will when I manage to find time. |
The issue is fixed and will be included in next release. |
looks like the fix has some bugs. nested subgraph labels at 3 or levels deep are not working well, or if there are two subgraphs within a subgraph too. |
Please notice the labels of subgraphs going haywire.
graph TB;
I --> IG((IG))
subgraph publicnet |
Thanks for your example. I can replicate the issue now. |
The issue was a bit harder ti fix then anticipated. The proper way to fix this involves a change in dagre-d3. I have submitted such a pull request and if/when this is included in dagre-d3 I will finish the solution of this issue. The problem is to identify the area in svg that is a subgraph. The positioning engine dagre-d3 positions thins for a good layout that does not necessarily correspond to the order things are in the graph definition so it is a guessing game to find the right section. |
The change in dagre-d3 has been released and the fix of the issue with the crazy labels has been pushed into (dev-0.5.0). In that branch there are also some experimental changes for packaging mermaid and for integration so use with care. Look at test/web_render.html for an example of nested subgraphs. |
A fix for this has been released in version 0.5.0 |
@knut
A fix for this has been released in version 0.5.0— |
Thanks for pointing this out. You also need to add the code below to your page. I will update the docs. <script>mermaid.initialize({startOnLoad:true});</script>Knut Sveidqvist On Tuesday 9 June 2015 at 06:28, Udaya Reddy wrote:
|
The following is a valid subgraph
but this is not
I can't think of a reason subgraphs should not be nestable, and i can think of reasons I'd want them to be.
The text was updated successfully, but these errors were encountered: