mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
#1542 Adding gantt to showcases
This commit is contained in:
@@ -78,7 +78,7 @@ stateDiagram-v2
|
|||||||
<div class="mermaid" style="width: 50%; height: 20%;">
|
<div class="mermaid" style="width: 50%; height: 20%;">
|
||||||
%%{init: {'theme': 'base'}}%%
|
%%{init: {'theme': 'base'}}%%
|
||||||
|
|
||||||
graph TB
|
flowchart TB
|
||||||
subgraph apa
|
subgraph apa
|
||||||
a --> A %% comment
|
a --> A %% comment
|
||||||
a --> a{apa} %% comment
|
a --> a{apa} %% comment
|
||||||
|
@@ -93,6 +93,31 @@
|
|||||||
John-->Alice: Great!
|
John-->Alice: Great!
|
||||||
end
|
end
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mermaid width height" >
|
||||||
|
%%{init: {'securityLevel': 'loose', 'theme':'base'}}%%
|
||||||
|
|
||||||
|
classDiagram
|
||||||
|
Animal "1" <|-- Duck
|
||||||
|
Animal <|-- Fish
|
||||||
|
Animal <--o Zebra
|
||||||
|
Animal : +int age
|
||||||
|
Animal : +String gender
|
||||||
|
Animal: +isMammal()
|
||||||
|
Animal: +mate()
|
||||||
|
class Duck{
|
||||||
|
+String beakColor
|
||||||
|
+swim()
|
||||||
|
+quack()
|
||||||
|
}
|
||||||
|
class Fish{
|
||||||
|
-int sizeInFeet
|
||||||
|
-canEat()
|
||||||
|
}
|
||||||
|
class Zebra{
|
||||||
|
+bool is_wild
|
||||||
|
+run()
|
||||||
|
}
|
||||||
|
</div>
|
||||||
<div class="mermaid width height">
|
<div class="mermaid width height">
|
||||||
gantt
|
gantt
|
||||||
dateFormat :YYYY-MM-DD
|
dateFormat :YYYY-MM-DD
|
||||||
|
@@ -88,6 +88,31 @@
|
|||||||
loop Every minute
|
loop Every minute
|
||||||
John-->Alice: Great!
|
John-->Alice: Great!
|
||||||
end
|
end
|
||||||
|
</div>
|
||||||
|
<div class="mermaid width height" >
|
||||||
|
%%{init: {'theme':'dark'}}%%
|
||||||
|
|
||||||
|
classDiagram
|
||||||
|
Animal "1" <|-- Duck
|
||||||
|
Animal <|-- Fish
|
||||||
|
Animal <--o Zebra
|
||||||
|
Animal : +int age
|
||||||
|
Animal : +String gender
|
||||||
|
Animal: +isMammal()
|
||||||
|
Animal: +mate()
|
||||||
|
class Duck{
|
||||||
|
+String beakColor
|
||||||
|
+swim()
|
||||||
|
+quack()
|
||||||
|
}
|
||||||
|
class Fish{
|
||||||
|
-int sizeInFeet
|
||||||
|
-canEat()
|
||||||
|
}
|
||||||
|
class Zebra{
|
||||||
|
+bool is_wild
|
||||||
|
+run()
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid width height">
|
<div class="mermaid width height">
|
||||||
gantt
|
gantt
|
||||||
|
@@ -88,6 +88,29 @@
|
|||||||
John-->Alice: Great!
|
John-->Alice: Great!
|
||||||
end
|
end
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mermaid width height" >
|
||||||
|
classDiagram
|
||||||
|
Animal "1" <|-- Duck
|
||||||
|
Animal <|-- Fish
|
||||||
|
Animal <--o Zebra
|
||||||
|
Animal : +int age
|
||||||
|
Animal : +String gender
|
||||||
|
Animal: +isMammal()
|
||||||
|
Animal: +mate()
|
||||||
|
class Duck{
|
||||||
|
+String beakColor
|
||||||
|
+swim()
|
||||||
|
+quack()
|
||||||
|
}
|
||||||
|
class Fish{
|
||||||
|
-int sizeInFeet
|
||||||
|
-canEat()
|
||||||
|
}
|
||||||
|
class Zebra{
|
||||||
|
+bool is_wild
|
||||||
|
+run()
|
||||||
|
}
|
||||||
|
</div>
|
||||||
<div class="mermaid width height">
|
<div class="mermaid width height">
|
||||||
gantt
|
gantt
|
||||||
dateFormat :YYYY-MM-DD
|
dateFormat :YYYY-MM-DD
|
||||||
|
@@ -89,6 +89,31 @@
|
|||||||
John-->Alice: Great!
|
John-->Alice: Great!
|
||||||
end
|
end
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mermaid width height" >
|
||||||
|
%%{init: {'theme':'forest'}}%%
|
||||||
|
|
||||||
|
classDiagram
|
||||||
|
Animal "1" <|-- Duck
|
||||||
|
Animal <|-- Fish
|
||||||
|
Animal <--o Zebra
|
||||||
|
Animal : +int age
|
||||||
|
Animal : +String gender
|
||||||
|
Animal: +isMammal()
|
||||||
|
Animal: +mate()
|
||||||
|
class Duck{
|
||||||
|
+String beakColor
|
||||||
|
+swim()
|
||||||
|
+quack()
|
||||||
|
}
|
||||||
|
class Fish{
|
||||||
|
-int sizeInFeet
|
||||||
|
-canEat()
|
||||||
|
}
|
||||||
|
class Zebra{
|
||||||
|
+bool is_wild
|
||||||
|
+run()
|
||||||
|
}
|
||||||
|
</div>
|
||||||
<div class="mermaid width height">
|
<div class="mermaid width height">
|
||||||
gantt
|
gantt
|
||||||
dateFormat :YYYY-MM-DD
|
dateFormat :YYYY-MM-DD
|
||||||
|
@@ -89,6 +89,31 @@
|
|||||||
John-->Alice: Great!
|
John-->Alice: Great!
|
||||||
end
|
end
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mermaid width height" >
|
||||||
|
%%{init: {'theme':'neutral'}}%%
|
||||||
|
|
||||||
|
classDiagram
|
||||||
|
Animal "1" <|-- Duck
|
||||||
|
Animal <|-- Fish
|
||||||
|
Animal <--o Zebra
|
||||||
|
Animal : +int age
|
||||||
|
Animal : +String gender
|
||||||
|
Animal: +isMammal()
|
||||||
|
Animal: +mate()
|
||||||
|
class Duck{
|
||||||
|
+String beakColor
|
||||||
|
+swim()
|
||||||
|
+quack()
|
||||||
|
}
|
||||||
|
class Fish{
|
||||||
|
-int sizeInFeet
|
||||||
|
-canEat()
|
||||||
|
}
|
||||||
|
class Zebra{
|
||||||
|
+bool is_wild
|
||||||
|
+run()
|
||||||
|
}
|
||||||
|
</div>
|
||||||
<div class="mermaid width height">
|
<div class="mermaid width height">
|
||||||
gantt
|
gantt
|
||||||
dateFormat :YYYY-MM-DD
|
dateFormat :YYYY-MM-DD
|
||||||
|
@@ -143,6 +143,35 @@ When adjusting a theme it might be helpful to look at the theme with these diagr
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### class diagram
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
%%{init: {'securityLevel': 'loose', 'theme':'base'}}%%
|
||||||
|
|
||||||
|
classDiagram
|
||||||
|
Animal "1" <|-- Duck
|
||||||
|
Animal <|-- Fish
|
||||||
|
Animal <--o Zebra
|
||||||
|
Animal : +int age
|
||||||
|
Animal : +String gender
|
||||||
|
Animal: +isMammal()
|
||||||
|
Animal: +mate()
|
||||||
|
class Duck{
|
||||||
|
+String beakColor
|
||||||
|
+swim()
|
||||||
|
+quack()
|
||||||
|
}
|
||||||
|
class Fish{
|
||||||
|
-int sizeInFeet
|
||||||
|
-canEat()
|
||||||
|
}
|
||||||
|
class Zebra{
|
||||||
|
+bool is_wild
|
||||||
|
+run()
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
### Gantt
|
### Gantt
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
|
Reference in New Issue
Block a user