merIDK / Diagram types / Timeline
Mermaid timeline: example and syntax
Timelines list events in date order. Use them for company history, product roadmaps and release notes.
Open this example in the editor
Example code
timeline
title History of the web
1991 : First website
1995 : JavaScript
: PHP
2004 : Web 2.0
2008 : Chrome
2015 : ES2015
Result
timeline
title History of the web
1991 : First website
1995 : JavaScript
: PHP
2004 : Web 2.0
2008 : Chrome
2015 : ES2015Syntax quick reference
- Each period:
2024 : Event. - Add more events to the same period on new lines starting with
:. - Group periods with
section.
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.