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
71.62k stars 6.49k forks source link

Is it possible to use straight line to link the nodes? #5179

Open hqgu opened 9 months ago

hqgu commented 9 months ago

Proposal

I am an academic researcher who uses Mermaid to draw flowcharts for academic journals. However, academic journals require straight lines to connect the nodes, which is not possible with any of the current Mermaid themes. If possible, I would like to see this feature developed. Thank you.

Colors

black lines with a white background would be enough.

Screenshots

Screenshots from some journals: image image image

sidharthv96 commented 8 months ago

Please try using flowchart-elk, instead of graph or flowchart. It will draw straight lines.

shravanngoswamii commented 2 months ago

How can I create something exactly like this in mermaid, I did try flowchart-elk, but still I am not able to get straight lines to link nodes and also is there any way to get oval shape??

Also, I want the labels on node links outside the lines!

transformations-getindex-without-dist dot