gantt
title
图标题,关键词title
dateFormat
输入时间格式, YYYY-MM-DD
axisFormat
输出时间格式,显示在时间轴上的格式
section
关键词section,section包含多个任务
task
任务描述 : 状态(可缺省),任务名称(可缺省),开始时间,持续时长(或结束时间)
milestone
关键词milestone
state
状态 | 描述 |
---|---|
done | 完成 |
active | 激活,进行中 |
default | 尚未实施 |
crit | 关键任务(可以与其他状态复用) |
todayMarker
todayMarker on/off
excludes
排除的日期
accepts specific dates in YYYY-MM-DD format, days of the week (“sunday”) or “weekends”, but not the word “weekdays”.
example
gantt
dateFormat YYYY-MM-DD
title A Gantt Diagram
section SectionOne
initial milestone :milestone, m1, 2022-03-06
task one :done, a1, 2022-03-01, 10day
task two :active, a2, after a1, 3day
second milestone :milestone, m2, 2022-03-12
section SectionTwo
task one :2022-03-12, 12d
task two : 24d