The workshop plan is 50 minutes of practice, 30 minutes of demo and 20 minutes of questions. A pie chart makes the 100-minute split easy to see.

Enter minutes for each part of the same total

~~~mermaid
pie showData title Workshop activities (minutes)
  "Practice" : 50
  "Demo" : 30
  "Questions" : 20
~~~

In preview, Practice should take half the circle. The legend should include the values because the block uses showData.

The pie shows Practice 50 minutes, Demo 30 minutes and Questions 20 minutes.

Illustrated pie. All values contribute to the same 100-minute total.

Update the total when a break joins the plan

If a 10-minute break extends the workshop, add "Break" : 10 and update the total in the note to 110 minutes. Practice now takes about 45.5% of the circle. Keep the amounts and total in nearby text so they remain readable when Mermaid does not render.

A 10-minute break adds a fourth slice and changes the total to 110 minutes.

Illustrated update. Practice then accounts for about 45.5 percent of the total.

Mermaid’s pie chart syntax