Xiaoliu BOT

DeepSeek-R1 Prompting Tips: Use This Single Prompt to Generate Various Cool Charts with AI

2025.02.13 Published2026.10.26 Updated5,038 characters · about 5 min26 images
SummaryThis tutorial demonstrates how a specific prompt enables DeepSeek-R1 to generate various Mermaid charts, such as Gantt charts, flowcharts, and knowledge graphs, enhancing data visualization with AI assistance.
Contents · 4 sections

Let’s get straight to the point. The prompt is:

Please use Mermaid to draw………

To avoid a dry explanation, let’s first show the result.

Input prompt:

Create a 30-day vacation weight loss plan, and draw it as a Gantt chart using Mermaid

The output Gantt chart:

A Mermaid Gantt chart lays out a 30-day weight-loss plan with diet, exercise, and rest.

How about that? The effect is pretty good, right?

Let’s continue.

Markdown and Mermaid

We’ve previously introduced Markdown:Why do AI answers always come out with useless symbols like 「##」, 「**」, 「-」? How can I remove them?

Markdown can represent various formats through simple text syntax. What we’re discussing today is similar—it allows creating multiple types of charts using simple text syntax and renders them visually based on JavaScript. It’s called Mermaid.

The weight loss plan mentioned earlier actually looks like this in the AI chat window:

DeepSeek outputs Mermaid Gantt code for a 30-day weight-loss plan.

Click the copy button in the top right corner of the code block, then paste it into a website that provides Mermaid rendering functionality, such as mermaidchart.com or mermaid.live, to convert it into a visual chart.

The Mermaid editor renders weight-loss plan code as a Gantt chart.

Eight Examples

Let’s set up a few specific scenarios to demonstrate.

1. For example, today we read an article on the website ‘Everyone is a Product Manager’ about the ‘Standard SOP Process for Event Planning.’ I want to organize and summarize it.

An article on a standard event-planning SOP on Woshipm.

I can copy the entire article and then tell DeepSeek-R1: ‘Please organize the following article into a Mermaid chart.’

An event-planning proposal is given to DeepSeek to organize as a Mermaid diagram.

Thus, we obtain a chart that resembles a mind map.

A Mermaid tree diagram organizes an event's theme, goals, and execution schedule.

The original text of this example article is not very complex, and it contains many images, so the resulting chart is relatively simple. If you use your company’s internal processes or SOPs, or courses you are currently studying, you will achieve better results.

2. Draw an industry knowledge graph. For example, draw a knowledge graph for the large language model industry.

DeepSeek generates Mermaid code for an industry knowledge graph of large language models.

Thus, we obtain a knowledge graph.

A large-language-model knowledge graph branches into technologies, tools, and industry participants.

3. Please use mermaid to draw the shopping journey of users entering the Uniqlo Tmall live streaming room and placing orders on Double Eleven.

DeepSeek generates Mermaid code for a Uniqlo livestream shopping journey.

Thus, we obtain a user journey map.

A Uniqlo Double Eleven livestream shopping journey is divided into user-action stages.

4. Enable both deep thinking and online search: Please use mermaid to draw the market share of cloud servers in 2023 and 2024.

DeepSeek outputs Mermaid pie-chart code comparing cloud-service market shares for two years.

Thus, we obtain two pie charts.

A pie chart shows mainland China's cloud-service market shares for Q4 2023.

A pie chart shows mainland China's cloud-service market shares for Q3 2024.

5. Please use mermaid to draw the protocol interaction diagram of a typical home broadband network.

DeepSeek describes home-broadband protocol exchanges in Mermaid sequence-diagram code.

Thus, the chart is as follows:

A home-broadband sequence diagram shows authentication, address assignment, and web requests.

6. Enable both deep thinking and online search: Please summarize and organize the transcript of Luo Zhenyu’s 2025 New Year’s Eve speech, then use mermaid to draw it as a mind map.

*Here, DeepSeek has a bit of difficulty and needs a prompt to use mindmap for drawing a mind map; otherwise, it will draw the kind of flowchart-style mind map seen in the first example.

DeepSeek uses web search to outline Luo Zhenyu's 2025 New Year speech.

Thus, we obtain a mind map.

A colorful mind map summarizes themes from Luo Zhenyu's New Year speech.

7. Enable both deep thinking and online search: Please use mermaid to draw the development history of the website acfun.

DeepSeek generates Mermaid Gantt code for AcFun's development history.

In this case, DeepSeek spontaneously used a Gantt chart, which is also reasonable.

A Gantt chart marks milestones such as AcFun's founding and organizational changes.

You can also explicitly request it to be drawn as a timeline.

An AcFun timeline lists founding, corporatization, and compliance events by year.

8. Simultaneously enable deep thinking and online search: Please use Mermaid to help me draw a bar chart (xychart) showing the changes in Tmall Double 11 GMV over the years.

*It should be noted here that DeepSeek needs to use the xychart diagram to correctly draw coordinate bar charts.

DeepSeek generates bar-chart code for annual Tmall Double Eleven GMV.

Then we get the bar chart:

A bar chart displays Tmall Double Eleven GMV from 2009 through 2022.

The above demonstration cases basically cover the most common types of Mermaid diagrams, and I believe you have already understood them.

A New Way to Solve Problems with AI

But I don’t want to stop here.

Previously, in:How can ordinary people use DeepSeek’s API?In this article, I expressed a viewpoint that I would like to reiterate here:

In the past, people who mastered some search skills, including myself, could benefit from small bonuses. Because we could always determine whether there might be some ready-made solutions for certain problems, and then through searching, find these existing solutions or small tools on the internet. Then, using these existing old wheels, we could quickly solve the new problems we encountered.

But with the advancement of AI, the optimal path to solving many problems may no longer be finding an existing good solution to the problem, but directly using AI to generate a 100% matching solution for the problem at hand and tackle it head-on.

This is also what I consider a new paradigm for problem-solving in the AI era.

Previously,In the article about Markdown,Many people left comments in the comment section, expressing confusion about why I recommended writing a new converter to handle Markdown markup.

Raw Markdown retains heading and bold markers in the displayed text.

Some said such symbols can be deleted one by one manually without much effort; some said to use Find and Replace in Word; some said to use Tencent Docs; some said to find an open-source Markdown editor online and convert it to PDF; some chose to install VSCode and Typora to solve it; some said Markdown itself allows humans to read it directly, so there’s no need to convert; and some said they would just give up on formatting and require in the prompt not to use Markdown.

But I still recommend using AI to generate a personal converter that best suits your own habits. This is not only for private customization but also for deliberate practice.

Therefore, while mermaidchart.com and mermaid.live are both quite good,

Building My Own Mermaid Viewer

I still opened Cursor.

Cursor writes an HTML Mermaid diagram converter in response to a request.

Ultimately, my Mermaid converter:

– Supports four themes and two backgrounds (black and white)

– Supports both horizontal and vertical layouts for flowcharts

– Supports mouse dragging and zooming with the scroll wheel without holding the Ctrl key (simply because I don’t like pressing the Ctrl key)

– Supports full-screen browsing

– Supports exporting the chart as a PNG in any browsing state, with much higher clarity than online websites

The Mermaid converter offers theme selection, code input, and a diagram preview.

The Mermaid converter displays a tree diagram fullscreen with zoom controls.

As usual, the source code is posted here:

<!DOCTYPE html>

Simply create a new text document, paste the code inside, change the file extension to ‘.html’, and it’s ready to use—you can also share it with others.

But as I always say, I recommend trying to write one yourself with the help of AI.