From 3bf873b99f21d252f199dcfaa24a2f02f277eedd Mon Sep 17 00:00:00 2001 From: lilisha100 Date: Fri, 27 Sep 2019 09:27:53 -0700 Subject: [PATCH 1/3] Update gantt.md --- docs/gantt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gantt.md b/docs/gantt.md index 9d498a684..db50a8f2a 100755 --- a/docs/gantt.md +++ b/docs/gantt.md @@ -106,7 +106,7 @@ Tbd ### Date format -Tbd +The default date format is YYYY-MM-DD ### Diagram definition From e7161fcca61d395ccac4357ab87d55cc59c24d6c Mon Sep 17 00:00:00 2001 From: lilisha100 Date: Fri, 27 Sep 2019 09:52:22 -0700 Subject: [PATCH 2/3] Update gantt.md --- docs/gantt.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/gantt.md b/docs/gantt.md index db50a8f2a..eb3dfff29 100755 --- a/docs/gantt.md +++ b/docs/gantt.md @@ -15,18 +15,6 @@ gantt Task in sec :2014-01-12 , 12d another task : 24d ``` -```mermaid -gantt - title A Gantt Diagram - dateFormat YYYY-MM-DD - section Section - A task :a1, 2014-01-01, 30d - Another task :after a1 , 20d - section Another - Task in sec :2014-01-12 , 12d - another task : 24d -``` - ## Syntax @@ -106,7 +94,11 @@ Tbd ### Date format -The default date format is YYYY-MM-DD +The default date format is YYYY-MM-DD. You can define your ``dateFormat``. For example: + +``` +dateFormat YYYY MM DD +``` ### Diagram definition From dffe20b76cf526d4a0997c375d0be36d15f132c7 Mon Sep 17 00:00:00 2001 From: lilisha100 Date: Fri, 27 Sep 2019 10:15:03 -0700 Subject: [PATCH 3/3] Update gantt.md --- docs/gantt.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/gantt.md b/docs/gantt.md index eb3dfff29..6363011d7 100755 --- a/docs/gantt.md +++ b/docs/gantt.md @@ -15,7 +15,17 @@ gantt Task in sec :2014-01-12 , 12d another task : 24d ``` - +```mermaid +gantt + title A Gantt Diagram + dateFormat YYYY-MM-DD + section Section + A task :a1, 2014-01-01, 30d + Another task :after a1 , 20d + section Another + Task in sec :2014-01-12 , 12d + another task : 24d +``` ## Syntax ```