Questions tagged [mermaid]

Mermaid is a markup language for generating diagrams and flowcharts.

Mermaid allows for generation of diagrams and flowcharts from text in a similar manner as markdown.

You can check its Usage, Flowchart syntax and Sequence diagram syntax.

118 questions
6
votes
0 answers

Mermaid Gantt chart not showing up in R markdown tab

I was hoping for input on embedding Gantt charts into an R markdown file. I'm using the Mermaid function in the DiagrammeR package to make Gantt charts. I'd like to have the different plots separated into tabs in the markdown file. However, the…
AlexP
  • 473
  • 1
  • 4
  • 13
5
votes
1 answer

I am unable to add hyperlinks to a mermaid flowchart within the wiki functionality of gitlab

I want to use my flowchart as a table of contents that also represents the progression of parallel events vaguely in chronological order and their relation to one another. I know to create these charts using markdown. By adding the "click" line for…
DED
  • 175
  • 10
5
votes
1 answer

Set gantt tasks to relative dates before a deadline in mermaid

I'm using mermaid js to produce a gantt chart. In the documentation it shows how to set tasks relative to the completion of the prior task using "after x", for example: section A section Completed task :done, des1,…
pgcudahy
  • 1,129
  • 7
  • 28
5
votes
1 answer

Angular 4 compatible with Mermaid js?

I am looking for diagram Javascript library to create some kind of top level dynamic block diagram for my angular project. Can anyone pls tell me if mermaid is compatible to work with Angular 4? Also pls let me know if there are any other good…
5
votes
1 answer

How to embed an image in a node with "mermaid.js"

Is there any way to embed a picture with mermaid.js in a flow diagram graph node? I tried:
graph LR A() --> B
qd-codie
  • 263
  • 4
  • 9
5
votes
1 answer

How to include DiagrammeR/mermaid flowchart in a Rmarkdown file

I have an R markdown file: --- title: "Untitled" author: "Me" output: html_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ## R Markdown This is an R Markdown document. As well as a DiagrammeR/mermaid chart: graph…
Oneira
  • 1,171
  • 1
  • 10
  • 21
5
votes
1 answer

Styling mermaid diagrams with DiagrammeR

I'm using the DiagrammeR package in R to render a flowchart with mermaid: graph LR A[text]-->B[a very, very, very, very, very, very, very, very, long text] style A fill:red, font-size:50px Looking at the compiled XML, this produces: #mermaidChart0…
user2987808
  • 1,197
  • 11
  • 23
4
votes
2 answers

How do I change the color of just one element in a Mermaid sequence diagram?

I'm using Mermaid to create a sequence diagram in Markdown. I'd like to highlight some of the participants and to gray some of the arrows. I only see how to change the theme color, not how to change the color of a specific diagram element. Is it…
neves
  • 20,547
  • 15
  • 108
  • 137
4
votes
1 answer

Mermaid change position of nodes / options Anyway to fix nodes' position

I'm trying to draw a flow chart in html. The flow must be configured as below. I've tried it in Mermaid like this
graph LR A-->B B-->C C-->B C-->D D-->C D-->E E-->D E-->F F-->E F-->G G-->E …
4
votes
1 answer

Using DiagrammeR to place one rows of nodes below another

Given the following flow chart derived via DiagrammeR package: DiagrammeR::DiagrammeR(diagram = " graph LR; A[Start]-->B; B --> C; C…
Konrad
  • 14,406
  • 15
  • 86
  • 141
4
votes
0 answers

How to save DiagrammeR Gantt graph as svg file

I would like to know how to save a Gantt diagram that was generated with the mermaid function of DiagrammeR as an SVG file. Take as example the following Gantt diagram from this post: Gantt charts with…
Yatrosin
  • 325
  • 2
  • 13
4
votes
3 answers

Marked ( Markdown ) + Mermaid ( Flow Chart & Diagrams )

Struggling to get Mermaid - https://github.com/knsv/mermaid to work with Marked - https://github.com/chjj/marked From what I gather I should be able to write the following in markdown ``` graph TD;A-->B;A-->C;B-->D;C-->D; ``` and have it…
Andrew Vink
  • 251
  • 1
  • 3
  • 7
3
votes
1 answer

Change gitlab markdown mermaid diagram size

Is there a way to set the size of diagram (i.e. flow chart) created with mermaid in Gitlab markdown? The default is just too large! My markdown: graph TD; A[User click payment] --> B(Load Payment Gateway) --> C[User pay] --> D(Redirect to…
Osh Mansor
  • 1,152
  • 2
  • 18
  • 36
3
votes
1 answer

How to add mermaid diagrams to a rocket.chat instance?

There is something compelling in the integration of mermaid syntax in markdown text, since it is quite "markdownish". I got the idea that I would like to type my own mermaid diagram in a rocket.chat window and see it interpreted on the fly. I have…
fralau
  • 2,040
  • 18
  • 33
3
votes
1 answer

Mermaid Gantt exclude weekends from Axis

How do I exclude weekends in the visual output? (see circled area below). I would like to exclude weekends both in counting and visually. Is there a way to do that? Here is my code, gantt title blabla dateFormat YYYY-DD-MM axisFormat…
user55944
  • 31
  • 1