In this tutorial, we will learn How to Create Charts and Diagrams in notion using mermaid.
- Notion keeps providing new features to its large community of users. This time Notion has come up with a new feature wherein you can create charts and diagrams using the mermaid language.
- You can get your hands dirty and play around with this new Notion+mermaid integration.
How to Create Charts and Diagrams in notion using mermaid.
Step 1: Logon to Notion.
- Log on to your Notion account and open the page where you want to create a chart or diagram.
![](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-HX5pUhPQ/w:421/h:134/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-45.png)
Step 2: Type “/code” (without quotes) on the Notion Page.
- Type /code and select code as shown below.
![How to Create Charts and Diagrams in notion using mermaid](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-sU1evKIH/w:1024/h:598/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-46.png)
Step 3: Set the language to Mermaid
- Click on the down arrow as shown in the below image.
![](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-PZwW96k-/w:1024/h:297/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-47.png)
- Search for the language mermaid
![](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-tHLlfdqF/w:auto/h:auto/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-48.png)
![](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-5pv-RxgB/w:auto/h:auto/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-49.png)
- Once the language mermaid is selected. In front of Mermaid switch from split using the down arrow and set it to code.
![](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-rHKkmFtz/w:auto/h:auto/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-52.png)
Now you can use the mermaid code to create Flow Charts and Diagrams.
To learn the mermaid syntax you can follow the below link.
Learn Mermaid syntax → https://mermaid-js.github.io/mermaid/#/
In this example, we will create a User work journey diagram.
journey
title My working day
section Go to work
Make tea: 5: Me
Make Breakfast: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me
![](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-3PCBvpue/w:1024/h:515/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-54.png)
To view, the diagram switch from code to Preview as shown below.
![](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-QNW8qyb-/w:auto/h:auto/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-56.png)
This is how the User Journey diagram looks. You can customize the code as per your requirement.
![](https://ml6efdvut7qo.i.optimole.com/Sjge_4I-xPKcD02P/w:1024/h:492/q:auto/https://addnewskills.com/wp-content/uploads/2021/12/image-57.png)
Similarly, you can create pie charts, flowcharts, sequence diagrams, Gantt Diagram, etc using mermaid language in Notion.
So play around with this awesome Notion+Mermaid integration and create some amazing diagrams.
We hope this tutorial on How to Create Charts and Diagrams in notion using mermaid was helpful.
Related articles :
How to use Page Lock in Notion