merIDK / Diagram types / Venn diagram
Mermaid Venn diagram: example and syntax
Venn diagrams show how sets overlap. Mermaid added them in version 11 to show shared skills, feature overlap or audience segments.
Open this example in the editor
Example code
venn-beta
title "Team overlap"
set Frontend
set Backend
set Design
union Frontend,Backend["APIs"]
union Frontend,Design["UI"]
Result
venn-beta title "Team overlap" set Frontend set Backend set Design union Frontend,Backend["APIs"] union Frontend,Design["UI"]
Syntax quick reference
- Declare each set:
set Name. - Label an overlap:
union A,B["Shared"]. - Add a heading with
title "...".
How to use it
- Open the example in the editor, or paste your own Mermaid code.
- Edit the code on the left. The preview updates as you type, and errors point to the line.
- Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.