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

software architecture diagram #36

Closed
danilosampaio opened this issue Dec 6, 2014 · 13 comments
Closed

software architecture diagram #36

danilosampaio opened this issue Dec 6, 2014 · 13 comments
Labels
Status: Approved Is ready to be worked on Type: Enhancement New feature or request

Comments

@danilosampaio
Copy link

hi @knsv ,

is there a way to create a architecture diagram? something like:


front-end libraries
midleware

| nodejs | other services |


thanks.

@danilosampaio
Copy link
Author

sorry about formatting... :)

@danilosampaio
Copy link
Author

something like this:

Java_Client_Server_Architecture_Diagram.jpg

@knsv knsv added the Type: Enhancement New feature or request label Dec 8, 2014
@knsv
Copy link
Collaborator

knsv commented Dec 8, 2014

Sorry but there are no such functionality today. This would be something like subgraphs in DOT/grapwiz. I am not ruling it out in the future but there are no work going on right now for achieving that right now.

I am open for suggestions of nifty syntax and implementations! :)

@danilosampaio
Copy link
Author

Hi guys,
i have been thinking about a syntax to represent that, and before i venture out in the implementation, i'd like share with you:

graph ||
    A
    B|A
    C|D
    E

the code above wil generate the following diagram:

---------------------------------------------
|                 A                          |
-------------------------------------        |
----------------------------------   |       |
|              B                  |  |       |
----------------------------------    -------  
--------------------    ---------------------
|         C         |  |         D           |
--------------------    ---------------------
---------------------------------------------
|                    E                       |
---------------------------------------------

what do you guys think?

@knsv
Copy link
Collaborator

knsv commented Dec 12, 2014

👍
I am open for more diagram types! And it is great to have more people contributing!

Some comments:

  • It would be wise to choose another keyword instead of graph, this will be used for identifying the diagram and directing mermaid to the correct parser/renderer. Maybe architecture or something like that.
  • Whats does the '| |' in the top mean, perhaps part of the identifying process?
  • When A shares space with in the second row, should it possible to choose the width somehow?

I have updated the structure to accommodate more diagram types easier. I have also put together i guide for adding a new diagram type ( in the wiki ). This outlines the steps required. It is just a draft so if you encounter anything that is unclear, feel free to ask and/or update the guide.

Another comment, if possible, try to stick with d3 for doing the drawing. It is there already so it should be easy to use. This way we don't have to add another dependency for the library. Other drawing tools can ofc be added if there are good reasons for it.

@danilosampaio
Copy link
Author

  • It would be wise to choose another keyword instead of graph, this will be used for identifying the diagram and directing mermaid to the correct parser/renderer. Maybe architecture or something like that.

i agree. it could be:

architecture <direction>

available directions: v,^,>,<

  • Whats does the '| |' in the top mean, perhaps part of the identifying process?

yes. but if we adopt architecture <direction> syntax, it would not be necesssary anymore.

  • When A shares space with in the second row, should it possible to choose the width somehow?

i think the simplest way to do that is using style, right?

@knsv
Copy link
Collaborator

knsv commented Dec 12, 2014

Sounds good. Even easier would be using parts of the full length
A -- 1
A|B --1/2
A|A|B -- 2/3

You decide on which way to go.

@knsv knsv added the Status: Approved Is ready to be worked on label Dec 13, 2014
@knsv
Copy link
Collaborator

knsv commented Mar 1, 2015

@danilosampaio How is this progressing? Tip: I have come to use flowcharts and subgraphs for similar diagrams which does it quite ok.

@danilosampaio
Copy link
Author

hi @knsv,

it's stucked.
i'm on a steep learning curve in the jison and d3 APIs.
Because of this, i'm using other tool for 'block diagrams'.
I'm not sure if the effort is worth, due to the fact
that, apparently, no one else showed interest in this feature.

@knsv
Copy link
Collaborator

knsv commented May 13, 2015

OK, will close this then. Thanks nevertheless!

@knsv knsv closed this as completed May 13, 2015
@SamuelMarks
Copy link

3 years have passed, anyone found a good solution to this problem?

@pbhogale
Copy link

and another year has passed. this would be really nice !

@rsbh
Copy link

rsbh commented Feb 3, 2020

one more year

@mermaid-js mermaid-js locked as spam and limited conversation to collaborators Feb 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Status: Approved Is ready to be worked on Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants