Mermaid Timeline Diagrams

Timeline diagrams show events in chronological order. Perfect for documenting history, project milestones, and event sequences.

Use Case

Use timelines when you need to:

  • Show chronological events
  • Document project milestones
  • Visualize history
  • Track event sequences
  • Display temporal relationships

Code

1```mermaid
2timeline
3    title Project Timeline
4    2024-01 : Planning
5    2024-02 : Development
6    2024-03 : Testing
7    2024-04 : Launch
8```

Result:

Examples

Example 1: Project Milestones

 1```mermaid
 2timeline
 3    title Research Project
 4    2024-01 : Literature Review
 5    2024-02 : Hypothesis Formation
 6    2024-03 : Experiment Design
 7    2024-04 : Data Collection
 8    2024-05 : Analysis
 9    2024-06 : Publication
10```

Result:

Example 2: Technology Evolution

 1```mermaid
 2timeline
 3    title Web Development Evolution
 4    1990s : HTML/CSS
 5    2000s : JavaScript Frameworks
 6    2010s : Single Page Apps
 7    2020s : Modern Frameworks
 8        : React
 9        : Vue
10        : Angular
11```

Result:

Notes

  • title - Optional timeline title
  • Format: Date/Time : Event
  • Can nest events under time periods
  • Use indentation for sub-events

Gotchas/Warnings

  • ⚠️ Format: Must use Date : Event format
  • ⚠️ Chronology: Events should be in chronological order
  • ⚠️ Nesting: Use indentation for sub-events
  • ⚠️ Dates: Can use various date formats

Related Snippets