-
-
Save marcoslopes/63db6abb4a9525e1c4eb203d4e62e58e to your computer and use it in GitHub Desktop.
Gantt Charts with Mermaid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <script src="https://raw.githubusercontent.com/knsv/mermaid/master/dist/mermaid.full.js"></script> | |
| <link rel="stylesheet" href="seq.css"/> | |
| <script> | |
| var mermaid_config = { | |
| startOnLoad:true | |
| } | |
| mermaid.sequenceConfig = '{"diagramMarginX":50,"diagramMarginY":10,"actorMargin":50,"width":150,"height":45,"boxMargin":10,"boxTextMargin":5,"noteMargin":10,"messageMargin":35, "mirrorActors":false}'; | |
| mermaid.ganttConfig = { | |
| titleTopMargin:25, | |
| barHeight:20, | |
| barGap:4, | |
| topPadding:50, | |
| sidePadding:75, | |
| gridLineStartPadding:35, | |
| fontSize:11, | |
| numberSectionStyles:3 | |
| }; | |
| </script> | |
| <script> | |
| function apa(){ | |
| console.log('CLICKED'); | |
| } | |
| </script> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| background: #fff; | |
| font-family: 'Open-Sans',sans-serif; | |
| } | |
| .grid .tick { | |
| stroke: lightgrey; | |
| opacity: 0.3; | |
| shape-rendering: crispEdges; | |
| } | |
| .grid path { | |
| stroke-width: 0; | |
| } | |
| .taskText { | |
| text-anchor:middle; | |
| font-size:11px; | |
| } | |
| .taskText0, .taskText3 { | |
| fill:black; | |
| } | |
| .taskText1, .taskText2 { | |
| fill:white; | |
| } | |
| .taskTextOutsideRight { | |
| fill:black; | |
| text-anchor:start; | |
| font-size:11px; | |
| } | |
| .taskTextOutsideLeft { | |
| fill:black; | |
| text-anchor:end; | |
| font-size:11px; | |
| } | |
| .taskTextOutside0,.taskTextOutside2, { | |
| fill:black; | |
| } | |
| .taskTextOutside1, .taskTextOutside3 { | |
| fill:darkblue; | |
| } | |
| .titleText { | |
| text-anchor:middle; | |
| font-size:18px; | |
| fill:#633; | |
| } | |
| .section { | |
| stroke:none; | |
| opacity:0.2; | |
| } | |
| .section0 { | |
| fill:#6666FF; | |
| } | |
| .section1 { | |
| fill:white; | |
| opacity:0.2; | |
| } | |
| .section2 { | |
| fill:orange; | |
| opacity:0.2; | |
| } | |
| .task { | |
| /*stroke:none;*/ | |
| } | |
| .task0 { | |
| fill: #ffffdd; | |
| } | |
| .task1 { | |
| fill: #8a90dd; | |
| } | |
| .task2 { | |
| fill: #8a90dd; | |
| } | |
| .sectionTitle { | |
| text-anchor:start; | |
| font-size:11px; | |
| text-height:14px; | |
| } | |
| .sectionTitle0 { fill:#454545;} | |
| .sectionTitle1 { fill:#454545;} | |
| .sectionTitle2 { fill:#454545;} | |
| .sectionTitle3 { fill:#b23473;} | |
| .done0, .done1, .done2, .done3 { | |
| stroke:grey; | |
| fill: lightgrey; | |
| stroke-width:2; | |
| } | |
| .crit0, .crit1, .crit2, .crit3 { | |
| stroke:#ff8888; | |
| fill: red; | |
| stroke-width:2; | |
| } | |
| .activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 { | |
| stroke:#ff8888; | |
| fill: #ffffc0; | |
| stroke-width:2; | |
| } | |
| .doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 { | |
| stroke:#ff8888; | |
| fill: lightgrey; | |
| stroke-width:2; | |
| cursor: pointer; | |
| shape-rendering: crispEdges; | |
| } | |
| .active0 { | |
| stroke:black; | |
| fill: #ffffdd; | |
| stroke-width:2; | |
| } | |
| .active1 { | |
| stroke:black; | |
| fill: #8a90dd; | |
| stroke-width:2; | |
| } | |
| .active2 { | |
| stroke:black; | |
| fill: #8a90dd; | |
| stroke-width:2; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <filter id="blur-effect-1"> | |
| <feGaussianBlur stdDeviation="2" /> | |
| </filter> | |
| <div class="mermaid"> | |
| gantt | |
| dateFormat YYYY-MM-DD | |
| title Work Chart for Design and Implementation | |
| section Research | |
| Requirements Definition :active, 2015-02-16, 2015-03-06 | |
| Logical Design :after, 2015-03-09, 2015-03-20 | |
| section Architecture | |
| Conceptual Layouts :after, 2015-03-09, 2015-03-20 | |
| Sprint Planning :after, 2015-03-18, 2d | |
| section Control Design & Development | |
| Definition of Required Controls :after, 2015-03-02, 2015-03-06 | |
| Control Development :after, 2015-03-09, 2015-03-20 | |
| Control Integration into Mongoose :after, 2015-03-15, 2015-03-27 | |
| section Development | |
| Sprint 1 :after, 2015-03-23, 2w | |
| Sprint 2 :after, 2015-04-06, 2w | |
| Sprint 3 :after, 2015-04-20, 2w | |
| Sprint 4 :after, 2015-05-04, 2w | |
| Sprint 5 :after, 2015-05-18, 2w | |
| section Hardening & Stabilization | |
| QA & Fixes :after, 2015-06-01, 4w | |
| GA :after, 2015-07-01, 1d | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment