Timeline Diagrams
Last updated
Last updated
Marmaid's Timeline diagrams provide a graphical representation of events or periods over time. They help illustrate the sequence and relationship between events, making them a powerful tool for visualizing histories, schedules, and project timelines.
Open the Code IDE and click Apps and Agents from the left-hand panel.
Select Mermaid. Paradime will automatically start a new Mermaid project.
In the terminal that appears, use the arrow keys to select "Timeline Diagram".
A new timeline.mmd
file will be created in your editor with this starter template:
Click the eye icon (👁️) in the top-right corner of the Mermaid file to preview your diagram.
Modify the .mmd
file as needed. The preview will update automatically.
The syntax for creating Timeline diagrams in Mermaid is straightforward:
Start with the timeline
keyword.
Optionally add a title with the title
keyword.
Define time periods followed by their events in the format:
You can include multiple events for a single time period using the same format:
Mermaid offers several themes such as base
, forest
, dark
, neutral
, and default
. To apply a theme, use the %%{init}
directive:
You can customize colors using cScale
and cScaleLabel
variables:
Keep it Chronological: Ensure events are listed in proper order.
Use Sections for Clarity: Group related events into sections for better organization.
Customize Colors: Use distinct colors for sections to enhance readability.
Line Breaks: Use <br>
to add line breaks in event text.
Disable Multi-Color: Use the disableMulticolor
option for uniform colors.
For more advanced configurations and examples, refer to the Mermaid documentation.