I use ChatGPT to generate diagrams/graphs/charts with Mermaid.js.org — here’s the good enough result for me as a developer

Mai Văn Khánh
7 min readFeb 10, 2023

Hello folks! I’m looking for a way to make use of ChatGPT for solving business use cases and helping me draw diagrams as well. Let’s see how ChatGPT can speed me up in doing so.

Become a member: https://maivankhanh.medium.com/membership

As a senior developer or technical lead, there is no set number of diagrams that are required. The number and types of diagrams will depend on the specific project, the team, and the organization. However, there are some common diagrams that are often used in software development, including:

- Class diagrams

- Sequence diagrams

- State diagrams

- Activity diagrams

- Component diagrams

- Deployment diagrams

- Object diagrams

- Data flow diagrams

- Entity relationship diagrams

- Use case diagrams

It’s important to note that not all of these diagrams will be necessary or useful in every project. The key is to choose the diagrams that best communicate the design and help the team understand the system being built.

For all of the diagrams, I will ask ChatGPT to use Mermaid.js syntax to generate.

About Mermaid.js.org
Mermaid is…

--

--