Diagram Patterns
Use these layout templates to avoid ad-hoc positioning.
Flowchart
Pattern:
- Put start node at top center.
- Stack process nodes vertically.
- Place decision diamonds between branches.
- Route “yes/no” branches left/right, then rejoin below.
Recommended spacing:
- Vertical gap:
90-120 - Horizontal branch gap:
180-260
Architecture Diagram
Pattern:
- Group by tiers: client, API, services, data.
- Keep each tier in a horizontal band.
- Draw arrows top-to-bottom or left-to-right consistently.
- Use frames to separate trust zones or environments.
Recommended spacing:
- Tier gap:
140-220 - Service sibling gap:
120-180
Sequence Diagram
Pattern:
- Put actors/services across the top.
- Draw vertical lifelines with lines.
- Draw request/response arrows left-to-right.
- Use dashed arrows for responses.
Recommended spacing:
- Participant gap:
180-240 - Message gap:
60-90
Mind Map
Pattern:
- Place central topic in middle.
- Place first-level topics in a radial layout.
- Place second-level topics around each first-level topic.
- Keep branch colors consistent per branch.
Recommended spacing:
- First-level radius:
180-260 - Second-level radius:
120-170
ERD
Pattern:
- Render each entity as a rectangle with title + fields.
- Align related entities in columns.
- Connect relationships with labeled lines or arrows.
- Keep crossing connectors to a minimum.
Recommended spacing:
- Entity column gap:
220-320 - Row gap:
120-180