Gantt charts: todayMarker
简介 / Introduction
Gantt charts are a staple of project management, visualizing task schedules and progress. todayMarker draws a vertical line at the current date, making it immediately clear how each task lines up against “now”. This article covers both PlantUML and Mermaid implementations.
PlantUML 版
1 | @startgantt |
Notes:
today 42draws a red vertical line at the “today” position (day 42 from project start).- PlantUML Gantt uses
[Task] lasts N daysto define duration. thenchains tasks sequentially (starts after the previous one finishes).-- text --creates a named separator between task groups.
Mermaid 版
1 | gantt |
Notes:
- Mermaid’s
todayMarkerkeyword draws a blue dashed line at “today” (relative to the current system date when rendered). dateFormatdefines input parsing;axisFormatcontrols the tick labels on the X axis.done/activekeywords indicate task state (completed / in-progress).sectiongroups tasks into named phases.
对比 / Side-by-side
| Feature | PlantUML | Mermaid |
|---|---|---|
| today marker | today 42 (red, colorable) |
todayMarker (blue dashed, built-in) |
| Duration syntax | lasts N days |
write days directly, e.g. 3d |
| Task chaining | then for sequential |
after XXX for dependency |
| Phase grouping | -- Label -- separator |
section Name |
| Task state | automatic colors: yellow / green | explicit done / active |
小结 / Wrap-up
PlantUML’s today N marker is customizable in color and position, ideal when you need a prominent “today” callout. Mermaid’s todayMarker is a zero-config keyword that works out of the box, perfect for docs embedded in GitHub READMEs or wikis. Both let the team see at a glance where the project stands relative to the current moment — pick the one that fits your toolchain.
- Title: Gantt charts: todayMarker
- Author: puml.online
- Created at : 2026-09-17 01:00:00
- Updated at : 2026-09-29 01:06:38
- Link: https://puml.online/blog/gantt-today-marker-en/
- License: This work is licensed under CC BY-NC-SA 4.0.