Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gantt chart 在mermaid中将甘特图任务设置为截止日期之前的相对日期_Gantt Chart_Mermaid - Fatal编程技术网

Gantt chart 在mermaid中将甘特图任务设置为截止日期之前的相对日期

Gantt chart 在mermaid中将甘特图任务设置为截止日期之前的相对日期,gantt-chart,mermaid,Gantt Chart,Mermaid,我正在使用mermaid js生成甘特图。在中,它显示了如何使用“x之后”设置与先前任务完成相关的任务,例如: section A section Completed task :done, des1, 2014-01-06,2014-01-08 Active task :active, des2, 2014-01-09, 3d Future task : des3, afte

我正在使用mermaid js生成甘特图。在中,它显示了如何使用“x之后”设置与先前任务完成相关的任务,例如:

section A section
   Completed task            :done,    des1, 2014-01-06,2014-01-08
   Active task               :active,  des2, 2014-01-09, 3d
   Future task               :         des3, after des2, 5d
   Future task2              :         des4, after des3, 5d

在随后的截止日期之前将任务设置为,是否有任何等价物?我尝试将“after”替换为“before”,但没有成功。对,mermaid语法不支持“before”限定符,只支持“after”限定符

在.

中描述了一些要考虑的选项。
  • 在“研究与需求”任务中使用结束日期值,如2020-04-10
  • 使用一个固定的持续时间-如20天的“审查和记录”任务
  • 用“:crit”-like“Implementation”标记任务,以指示“关键路径”任务
  • 您还可以在前面的任务之后的任务上应用“after”限定符,该任务将在其他任务之前完成。

    文档”链接生成404-File Not Found消息。
    title Example Gantt diagram
    dateFormat  YYYY-MM-DD
    section Team 1
    Research & requirements :done, a1, 2020-03-08, 2020-04-10
    Review & documentation : after a1, 20d
    section Team 2
    Implementation      :crit, active, 2020-03-25  , 20d
    Testing      :crit, 20d