-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Mix horizontal and vertical graph #68
Comments
Thanks for the kind words! Unfortunately I cant think of a good way to do what you are trying to do. |
I am new to this project, and so haven't looked at the code in detail yet, but I was interested in doing something similar, and wondered if it might be possible to extend layout support (TD,LR, etc.) to subgraphs. If that could be done, then the above could be represented as:
The "LR" in the subgraph defininition would specify a horizontal left-to-right layout for subgraph elements, creating the inverted T structure desired above. Is this feasible to implement in the current architecture? |
Hello Andrew! Subgraphs are actually supported with very similar syntax to the one you proposed. The only difference is that in the current implementation the subgraphs inherit the layout from the main chart. Chains are however not supported: would take two rows: h(Size Of House) --> h(Hypothesis) so correct syntax for the subgraph would be: I hope this help! On Tuesday 7 April 2015 at 02:40, Andrew Hart wrote:
|
I am going through issues and see this one as closed. Let me know if you feel differently. |
hi @knsv fantastic project! (sorry just had to say that) ... i believe subgraphs still cannot have their own topology and inherit it from the parent. is this feature planned to be added? will add great flexibility to mermaid. |
Add code formatting and precommit hook
@knsv I'd like to request that you post a fully working example for how to work around this limitation. This message wasn't very clear to me as someone with limited experience with mermaid. A link to a snippet displaying OP's desired graph would be appreciated. |
Hi!
I am tying to make a graph like this:
Is it possible?
And if not - is there some alternative way to do that?
P.S.
Thank you very much for a fantastic project!!
The text was updated successfully, but these errors were encountered: