Diagrams / Mermaid Timeline: Syntax & Examples
Mermaid Timeline: Syntax & Examples
Build a Mermaid timeline from periods and events. Edit a rollout example, organize milestones and choose a Gantt chart when durations matter.
When to use Timeline
Use a Mermaid timeline to tell an ordered story through periods and events. It suits release histories, research milestones, and project phases. Keep period labels consistent and include the context needed to understand why each event belongs in the story.
- Start with the example in the editor and identify the elements that answer your question.
- Replace the sample labels and values, previewing after each structural change.
- Review the diagram at its intended reading size, then keep the source and export the format your document accepts.
Read the Timeline example
Diagram source
timeline
title Example product rollout
January : Customer interviews
: Define scope
February : Prototype review
March : Pilot launch
: Collect feedbackSyntax and interpretation
| Concept | How to apply it |
|---|---|
| Periods | Use a consistent scale such as months or named phases. Avoid switching silently from days to years. |
| Events | Choose milestones that explain a change. Too many minor events hide the turning points. |
| Durations | A timeline emphasizes order. Use a Gantt chart if overlap, duration, or task dependency is essential. |
Common questions
Will the editor automatically sort dates?
Arrange the periods in the source in the intended order. Text labels can be phases rather than machine-readable dates, so explicit ordering is the safest approach.