Complete Diagram Guide
by Peta Team
Complete Diagram Guide
Share this page
Gantt Charts
Gantt charts are perfect for visualizing project timelines, schedules, and task dependencies. They display tasks as horizontal bars positioned along a timeline.
Basic Syntax
The fundamental syntax for Gantt charts defines tasks with names, start dates, and durations:
This creates a timeline showing two sequential tasks.
Task Syntax
Creating Tasks
Each task line consists of three parts:
- Task name: Descriptive name for the task
- Start date: In YYYY-MM-DD format, enclosed in brackets
- Duration: Number followed by 'd' for days
Syntax:
RST
1
2 Task Name [YYYY-MM-DD] : Nd
Example:
Date Format
Dates must be in ISO 8601 format (YYYY-MM-DD):
- Year: 4 digits
- Month: 2 digits (01-12)
- Day: 2 digits (01-31)
Duration Syntax
Duration is specified as a number followed by 'd':
- `1d`: 1 day
- `5d`: 5 days
- `10d`: 10 days
- `30d`: 30 days
Sequential Tasks
Linear Timeline
Tasks that follow each other sequentially:
Parallel Tasks
Overlapping Timelines
Tasks that run concurrently:
Complex Schedules
Mixed Sequential and Parallel
Combine sequential and parallel tasks:
Practical Examples
Software Development Lifecycle
Marketing Campaign
Product Launch
Tips and Best Practices
- Realistic timelines: Estimate durations carefully
- Buffer time: Add buffer between tasks
- Clear task names: Use descriptive, concise names
- Logical ordering: Arrange tasks chronologically
- Consider dependencies: Ensure predecessor tasks complete before successors
Common Patterns
Sprint Planning
Release Cycle
Next Steps
Now that you understand Gantt charts, let's explore sequence diagrams for visualizing interactions in the next chapter.