mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
Add example for side span of gantt
This commit is contained in:
29
test/examples/ganttSideSpan.html
Normal file
29
test/examples/ganttSideSpan.html
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="dist/mermaid.css"/>
|
||||||
|
|
||||||
|
<script src="dist/mermaid.js"></script>
|
||||||
|
<script>
|
||||||
|
mermaid.initialize({
|
||||||
|
gantt: {
|
||||||
|
leftPadding: 400
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="mermaid" id="i211">
|
||||||
|
gantt
|
||||||
|
dateFormat YYYY-MM-DD
|
||||||
|
title My Project
|
||||||
|
|
||||||
|
section Long Long Long Long Task Name
|
||||||
|
Completed task :done, des1, 2016-04-25, 2016-05-21
|
||||||
|
Active task :active, des1, 2016-04-25, 2016-04-30
|
||||||
|
Future task : des1, 2016-04-25, 2016-05-30
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue
Block a user