mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
68.8k stars 6.09k forks source link

Use swimlanes in flowchart diagram #2028

Open marcpre opened 3 years ago

marcpre commented 3 years ago

I would like to create a flowchart, which has swimlanes.

Find below an example.

Exam

After reading the documentation I couldn`t find this functionality. I found this issue #551, which was automatically closed.

Any suggestions how to integrate this feature or add it to mermaid if it does not exist?

I appreciate your replies!

AartBluestoke commented 1 year ago

the strictly horizontal connections between nodes of the same rank isn't something the current rendered produces - separate from the swimlane render class, there is also a need of a layout hint to allow for connection arrows between objects of the same rank.

zlatinz commented 1 year ago

@latetedemelon Related to https://github.com/mermaid-js/mermaid/issues/2028#issuecomment-1535240071

This is great, as long as you can make also links across swimlanes, e.g. A2-->B1

FraserCShell commented 1 year ago

It would be fantastic to have swimlane diagramming, particularly as we look to embed Mermaid diagrams into Confluence pages for our documentation purposes. My first attempt yesterday hasn't quite got there, so I'll need to use Visio, or PPT :( , which is ok for the enterprise org I am in, but for smaller startups it would be yet another additional cost. image

koppel commented 11 months ago

PlantUML Activity Diagrams have Swimlanes, and there is a Confluence plugin: https://plantuml.com/activity-diagram-beta

atleta commented 9 months ago

Also, while not text based, Draw.io can do swimlanes (and you can add flow cart elements).

fguisso commented 9 months ago

I'm lost with this thread, is subgrap not similar to swimlanes?

@napei commented on Mar 2, 2022

You can possibly achieve a halfway solution with subgraphs https://mermaid-js.github.io/mermaid/#/flowchart?id=subgraphs Definitely a feature worth having, +1.

Baarsgaard commented 8 months ago

I'm lost with this threat, is subgrap not similar to swimlanes?

Similar yes, but not usable as a substitute, to my knowledge. SubGraphs allow you to define boxes within which you can add nodes. But it differs from swimlanes as they have explicitly defined lanes. Subgraphs just kinda exist where they fit in depending on the connections made and the order they are defined in.

Swimlanes are always 2 or more parallel columns or rows in which you can have nodes that link between eachother.

trancongbao commented 8 months ago

+1

ppKrauss commented 8 months ago

2 years... Any hope here?

wcgzgj commented 7 months ago

Changing to plantUML now,it supports swimlanes and has plain language structure :(

vesper8 commented 7 months ago

Changing to plantUML now,it supports swimlanes and has plain language structure :(

So this is what you're going to be using now? https://github.com/plantuml/plantuml.js/

Seems interesting.. I also need swimlanes.

I see many examples using boundaries here: https://plantuml.github.io/plantuml.js/#example=playground/example-pumls/community/cloudflare_linode_firewall.puml

But would you happen to have an example with swimlanes similar to the ones in this thread?

Thanks

zlatinz commented 5 months ago

plantUML performance on the playground page https://plantuml.github.io/plantuml.js/ is horrendous. Much better performance on https://www.planttext.com/ As for example for swimlanes, maybe check https://stackoverflow.com/questions/51020100/plantuml-swimlanes-and-overlapping-connectors

juampe commented 4 months ago

+1 I can make swinlane flowchart with excel, ¿Why not with mermaid? imagen

medliii commented 4 months ago

@knsv @ashishjain0512 Hello!

I apologize for the disturbance. Is there still a lot to be done on this feature? Is it possible to complete it? It would significantly enhance the functionality.

I understand it's not much, but I am willing to personally donate $500 for the release of swimlanes.

sohmuijai commented 4 months ago

+1 for this feature please

mcqueenna commented 4 months ago

+1 for this feature please

latetedemelon commented 4 months ago

From a pratical perspective what's the simplest version of done for version one of this requirement? Am I wrong it's thinking it's very straight forward? Essentially a version of the flowchart with the following differences:

  1. No items can exist outside of subgraphs
  2. Only one layer of subgraphs
  3. For TD all subgraphs have to have the same width and have the same coordinates for their edges
  4. For LR all subgraphs have to have the same height and have the same coordinates for their edges

Would this work for a simple use case?

AartBluestoke commented 4 months ago

"From a practical perspective what's the simplest version of done for version one of this requirement? " - i think a connection type that forces the two connections to be in the same layer, rather than the child at a lower height of the parent. -- that would generalize to many different chart types - eg: each horizontal line in the Opportunity chart above would be augmented with this link type - at the moment an attempt to create this chart would create 13 levels, when only 5 will allow the chart to be rendered ... perhaps even a general solution that checks to see if the child Has to be at a lower level than the parent, and a link only sometimes increases the layer, rather than always ...

raaannzzz commented 3 weeks ago

Any hope here?

bytesex commented 3 weeks ago

Several years hoping this to be done. Hundreds of devs/analysts wanting this. But, it seems the powerful IT guys are busy working on trends like an AI. :) Earning millions of bucks, having no clue how to implement freaking swimlanes for themselves. The only reason I dont put my hands on it - i dont like graphs etc. But its really strange that guys who passion about this stuff don't help here. 12 июня 2024 г., в 19:29, Ranz @.***> написал(а): Any hope here?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

andremoraes commented 3 weeks ago

await 5 more years and perhaps AI will be able to do it. I doubt that powerful IT guys know how to code anymore

On Wed, Jun 12, 2024 at 12:30 PM bytesex @.***> wrote:

Several years hoping this to be done. Hundreds of devs/analysts wanting this. But, it seems the powerful IT guys are busy working on trends like an AI. :) Earning millions of bucks, having no clue how to implement freaking swimlanes for themselves. The only reason I dont put my hands on it - i dont like graphs etc. But its really strange that guys who passion about this stuff don't help here. 12 июня 2024 г., в 19:29, Ranz @.***> написал(а): Any hope here?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/mermaid-js/mermaid/issues/2028#issuecomment-2163567036, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7KXLQ7T55CAGLGXA2MB3ZHCARZAVCNFSM434LUII2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJWGM2TMNZQGM3A . You are receiving this because you are subscribed to this thread.Message ID: @.***>