Basic example
When dates are “excluded”, the Gantt chart extends tasks to the right, not by creating gaps inside the task.
Comprehensive example
Task metadata
Tasks use colon: to separate title from metadata. Metadata items are comma-separated.
Tags
Optional tags (must be specified first):active- Currently active taskdone- Completed taskcrit- Critical taskmilestone- Milestone marker
Task timing
Metadata syntax examples
Metadata syntax examples
| Syntax | Start date | End date |
|---|---|---|
<taskID>, <startDate>, <endDate> | Specified date | Specified date |
<taskID>, <startDate>, <length> | Specified date | Start + length |
<taskID>, after <otherTaskId>, <endDate> | After other task | Specified date |
<taskID>, after <otherTaskId>, <length> | After other task | Start + length |
<taskID>, <startDate>, until <otherTaskId> | Specified date | When other task starts |
<endDate> | After previous task | Specified date |
<length> | After previous task | Start + length |
Title
Add an optional title:Excludes
Exclude specific dates, days, or weekends:Weekend configuration (v11.0.0+)
Configure weekend start day:Sections
Divide the chart into sections:Milestones
Milestones represent a single instant in time:Vertical markers
Add vertical reference lines:Date formats
Input date format
Define how dates are parsed:Format options
Format options
| Input | Example | Description |
|---|---|---|
YYYY | 2014 | 4 digit year |
YY | 14 | 2 digit year |
Q | 1..4 | Quarter of year |
M MM | 1..12 | Month number |
MMM MMMM | January..Dec | Month name |
D DD | 1..31 | Day of month |
H HH | 0..23 | 24 hour time |
h hh | 1..12 | 12 hour time |
m mm | 0..59 | Minutes |
s ss | 0..59 | Seconds |
Output axis format
Define how dates are displayed:Axis format options
Axis format options
| Format | Definition |
|---|---|
%Y | Year with century |
%y | Year without century |
%m | Month as decimal |
%b | Abbreviated month name |
%B | Full month name |
%d | Zero-padded day of month |
%H | Hour (24-hour clock) |
%I | Hour (12-hour clock) |
%M | Minute as decimal |
%S | Second as decimal |
Axis ticks (v10.3.0+)
Customize tick intervals: Pattern:/^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/
Compact mode
Display multiple tasks in the same row:Interaction
Bind click events to tasks:This functionality is disabled when using
securityLevel='strict'.Today marker
Style or hide the current date marker:Comments
Add comments with%%: