Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Flowcharts | Creating Diagrams with Mermaid.js
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Mermaid.js Diagrams with JavaScript

bookFlowcharts

Flowcharts are one of the most common diagram types you will create with Mermaid.js. They help you visualize processes, workflows, and decision paths in a way that's easy to understand. Mermaid flowcharts use a simple syntax to define nodes (the steps or actions), edges (the lines or arrows connecting steps), and direction (how the flow moves from one node to another).

index.html

index.html

copy

This flowchart begins with a "Start" node and proceeds through steps such as "Gather Requirements" and "Begin Implementation." Decision points are represented by nodes with curly braces, like {"Is It Approved?"} and {"Passes Tests?"}. Arrows (-->) show the direction of flow between nodes. You can modify the diagram by changing node labels, adjusting the flow direction (for instance, using graph LR for left-to-right instead of graph TD for top-down), or adding/removing steps and decision branches. Each node can be customized with different shapes: square brackets [ ] for standard steps, and curly braces { } for decision points. Loops and alternative paths are created by connecting nodes as needed, allowing you to represent complex processes with clarity.

question mark

In Mermaid flowcharts, what symbol is used to represent a decision (conditional) node?

Select the correct answer

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 1

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Can you show me an example of a Mermaid.js flowchart?

How do I add decision points or loops in a Mermaid flowchart?

What are the different node shapes I can use in Mermaid.js?

bookFlowcharts

Deslize para mostrar o menu

Flowcharts are one of the most common diagram types you will create with Mermaid.js. They help you visualize processes, workflows, and decision paths in a way that's easy to understand. Mermaid flowcharts use a simple syntax to define nodes (the steps or actions), edges (the lines or arrows connecting steps), and direction (how the flow moves from one node to another).

index.html

index.html

copy

This flowchart begins with a "Start" node and proceeds through steps such as "Gather Requirements" and "Begin Implementation." Decision points are represented by nodes with curly braces, like {"Is It Approved?"} and {"Passes Tests?"}. Arrows (-->) show the direction of flow between nodes. You can modify the diagram by changing node labels, adjusting the flow direction (for instance, using graph LR for left-to-right instead of graph TD for top-down), or adding/removing steps and decision branches. Each node can be customized with different shapes: square brackets [ ] for standard steps, and curly braces { } for decision points. Loops and alternative paths are created by connecting nodes as needed, allowing you to represent complex processes with clarity.

question mark

In Mermaid flowcharts, what symbol is used to represent a decision (conditional) node?

Select the correct answer

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 1
some-alt