Skip to main content

Gantt

The following classes can be useful when creating gantt charts:

  • siren
  • gantt
  • ganttUnit
  • ganttTags
  • ganttTime
  • ganttConfig

Roadmap

let des1, isadded, a1, doc1 = "des1", "isadded", "a1", "doc1"
siren.gantt [
gantt.dateFormat "YYYY-MM-DD"
gantt.title "Adding GANTT diagram functionality to mermaid"
gantt.excludes "weekends"
gantt.comment """(`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)"""

gantt.section "A section"
gantt.task("Completed task", des1, "2014-01-06", "2014-01-08", [ganttTags.``done``])
gantt.task("Active task", "des2", "2014-01-09", "3d", [ganttTags.active])
gantt.task("Future task", "des3", "after des2", "5d")
gantt.task("Future task2", "des4", "after des3", "5d")

gantt.section "section Critical tasks"
gantt.taskStartEnd("Completed task in the critical line", "2014-01-06", "24h", [ganttTags.``done``; ganttTags.crit])
gantt.taskStartEnd("Implement parser and jison", ganttTime.after des1, "2d", [ganttTags.``done``; ganttTags.crit])
gantt.taskEnd("Create tests for parser", "3d", [ganttTags.active; ganttTags.crit])
gantt.taskEnd("Future task in critical line", "2d", [ganttTags.crit])
gantt.taskEnd("Create tests for renderer", "2d")
gantt.taskEnd("Add to mermaid", ganttTime.until isadded)
gantt.milestone("Functionality added", isadded, "2014-01-25", "0d")

gantt.section "section Documentation"
gantt.task("Describe gantt syntax", a1, ganttTime.after des1, "3d", [ganttTags.active])
gantt.taskStartEnd("Add gantt diagram to demo page", ganttTime.after a1, "20h")
gantt.task("Add another diagram to demo page", doc1, ganttTime.after a1, "48h")

gantt.section "Last section"
gantt.taskStartEnd("Describe gantt syntax", ganttTime.after doc1, "3d")
gantt.taskEnd("Add gantt diagram to demo page", "20h")
gantt.taskEnd("Add another diagram to demo page", "48h")
]
|> siren.write