甘特图
甘特图是一种用于项目管理的强大工具。它直观地表示了项目进度表,让管理人员和团队成员对整个项目的开始和结束日期一目了然。该图沿着水平时间轴显示任务或活动,显示每个任务的持续时间、它们的顺序以及它们是如何重叠或同时运行的。 在甘特图中,每个任务由一个条形图表示,其长度和位置反映了任务的开始日期、持续时间和结束日期。这种格式便于理解任务之间的依赖关系,即一项任务必须在另一项任务开始之前完成。此外,甘特图还可包括里程碑,即项目时间轴上的重要事件或目标,并以明显的符号标出。 在创建甘特图方面,PlantUML有几个优势。它提供了一种基于文本的图表创建方法,便于使用版本控制系统跟踪更改。这种方法对于已经习惯了基于文本的编码环境的团队尤其有利。PlantUML 的甘特图语法简单明了,可以快速修改和更新项目时间表。此外,PlantUML 与其他工具的集成,以及从文本动态生成图表的能力,使其成为希望自动化和简化项目管理文档的团队的多功能选择。因此,使用 PlantUML 制作甘特图,可将可视化项目规划的清晰度和效率与基于文本系统的灵活性和控制性结合起来。
声明任务
甘特图用自然的语言描述,使用非常简单的句子(主谓补)。
任务用方括号定义。
工作量
使用动词requires指定每项任务的工作量,工作量通过天数表示
开始
它们的开头用start 动词定义:
D+nn 形式:QA-14494]
结束
其结束用end 动词定义:
开始/结束
可以通过指定日期来绝对定义两者:
单行声明(用and连词)
可以将声明与and 连词组合在一行。
添加限制条件
可以在任务之间添加限制条件。
短名称
可以用as 关键字为任务定义短名称。
WARNING
This translation need to be updated. WARNING
Tasks with same name
[Starting with V1.2024.6,] it is possible to have multiple tasks with same name.
自定义颜色
也可以通过is colored in## 自定义 颜色。
完成状态
添加完成百分比
可以通过命令设置任务的完成状态:is xx% completedis xx% complete
更改完成度颜色(按样式)
WARNING
This translation need to be updated. WARNING
里程碑
您可以使用happen verb 定义里程碑。
相对里程### 碑(使用限制条件)
绝对里程碑(使用固定日期)
任务最长结束时间里程碑
超链接
您可以为任务添加超链接。
日历
您可以为整个项目指定一个开始日期。默认情况下,第一个任务从该日期开始。
着色日
可以为某些日子添加颜色。
更改尺度
您可以使用以下参数之一更改超长项目的尺度:
- printscale
- ganttscale
- projectcale
- daily (默认)
- weekly
- monthly
- quarterly
- yearly
Daily (默认)
每周
每月
每季度
每年
Date range with between
不带时间范围
带时间范围
缩放(以所有比例尺为例)
可以使用参数更改缩放:
zoom <integer>
周标尺缩放
无缩放
有缩放
不缩放
有缩放
不缩放
带缩放
不带缩放功能
带缩放
按年缩放
不带缩放功能
带缩放
WARNING
This translation need to be updated. WARNING
Weekscale with Weeknumbers or Calendar Date
With Weeknumbers (by default)
With Weeknumbers (starting from 1)
With specific Weeknumbers (starting from n [including negative integer])
With Calendar Date
Change first day of week
Close day
It is possible to close some day.
Definition of a week depending of closed days
A week is a synonym for how many non-closed days are in a week, as:
Working days
It is possible to manage working days.
Simplified task succession
It's possible to use the then keyword to denote consecutive tasks.
->
Working with resources
You can affect tasks on resources using the on keyword and brackets for resource name.
Hide resources
Without any hiding (by default)
Hide resources names
You can hide resources names and percentage, on tasks, using thehide resources names keywords.
Hide resources footbox
You can also hide resources names on bottom of the diagram using the hide resources footbox keywords.
Hide the both (resources names and resources footbox)
You can also hide the both.
水平分隔符
您可以使用-- 来分隔任务集。
Vertical Separator
You can add Vertical Separators with the syntax: Separator just [at].
Complex example
It also possible to use the and conjunction.
You can also add delays in constraints.
Comments
As is mentioned on Common Commands page:
Everything that starts with(i.e.: the first character (except space character) of a comment line must be asimple quote 'is a comment. You can also put comments on several lines using/'to start and'/to end.
simple quote ')
Using style
Without style (by default)
With style
You can use style to change rendering of elements.
With style (full example)
DONE
Thanks for style for Separator and all style for Arrow (thickness...)
Clean style
With style, you can also clean a Gantt diagram (showing tasks, dependencies and relative durations only - but no actual start date and no actual scale):
添加注释
完成
谢谢你在重叠时的修正(#386在v1.2020.18上)。
Pause tasks
Change link colors
You can change link colors:
- with this syntax:
with <color> <style> link
- or directly by using arrow style
Tasks or Milestones on the same line
You can put Tasks or Milestones on the same line, with this syntax:
[T|M] displays on same row as [T|M]
今天的亮点
Task between two milestones
Grammar and verbal form
| Verbal form | Example |
| [T] starts | |
| [M] happens |
Add title, header, footer, caption or legend
Add color on legend
移除脚盒(所有比例的例子)
你可以使用hide footbox 关键字来移除甘特图的脚盒
- (与顺序图*一样)。
- 每日规模(没有项目开始)
- 日线图
- 周尺度
- 月度规模
- 季度表
- 年度规模
日历的语言
你可以选择甘特日历的语言,用 language <xx>命令,其中 <xx>是语言的ISO 639代码。
英语(en,默认)。
Deutsch (de)
日语 (ja)
Chinese (zh)
Korean (ko)
删除任务或里程碑
您可以将某些任务或里程碑标记为deleted ,而不是正常完成,以区分可能已被丢弃、推迟或其他的任务。
Start a project, a task or a milestone a number of days before or after today
You can start a project, a task or a milestone a number of days before or after today, using the builtin functions %now and %date:
Change Label position
The labels are near elements (by default)
label:
Label on first column
- Left aligned
- Right aligned
Label on last column
- Left aligned
- Right aligned
Definition of a month (30 days)
A month is a synonym for 30 days.