Skip to content

Timeline Diagram

Last updated:

Mermaid Studio provides language support for Timeline diagrams inside IntelliJ IDEA and other JetBrains IDEs. Timeline diagrams display events in chronological order, which makes them useful for roadmaps, historical events, or project milestones.

Syntax highlighting integrates directly with IntelliJ’s color scheme system, so diagram colors always match your editor theme.

Timeline diagram syntax highlighting in Armada Dark theme

The summary below shows the IDE support Mermaid Studio ships for timeline diagrams, grouped by capability.

IDE feature supportSelect a feature for its description.
Editing
Code Intelligence

Timelines accept an optional direction after the timeline keyword. Only LR (left-to-right) and TD (top-down) are recognized by the Mermaid renderer, so Mermaid Studio’s lexer validates these values and flags anything else. Completion is provided by TimelineDirectionCompletionContributor.

Left-to-right:

timeline LR
title Product Releases
2022 : v0.1 Beta
2023 : v1.0 : v1.1
2024 : v2.0
2025 : v3.0 : v3.1 : v3.2
2026 : v4.0

Top-down:

timeline TD
title Product Releases
2022 : v0.1 Beta
2023 : v1.0 : v1.1
2024 : v2.0
2025 : v3.0 : v3.1 : v3.2
2026 : v4.0

Direction keywords are case-insensitive.

For complete syntax documentation including sections and styling options, see the Mermaid.js Timeline documentation.