PlantUML auto-detects the diagram type based on the first unique item in the code. See https://plantuml.com/commons#6dd346f9babe70c8 for diagram type examples that show what keywords or symbols trigger auto-detection of diagram type.
Activity Diagram
C4 Model Diagrams
Class Diagram
Component Diagrams
Deployment Diagrams
Gantt Charts
Mind Map
Mind Map of Tasks
Sequence Diagrams
Use Case Diagram
Note: auto-detect activity diagram type by lines that start with : and end with ;
Note: auto-detect of class diagram type by use of line type:
- <|--
- *--
- o--
- ..
- --
This isn't strictly a UML Deployment Diagram, but is similar:
Example Gantt chart:
Mind map diagrams are a great way to quickly break a problem or concept down into smaller parts.
Here is a simple example:
Here we create a Mind Map to track tasks, with visual tags for urgent and completed:
Sequence diagrams present ordered events that occur between participants (actors) over time (which runs top-to-bottom)
Here is a simple example:
There are multiple types of participant that can be used to trigger a sequence diagram, as per the types in the example below:
The order that that participants is declared determines their order left to right in the diagram, and the order of the events is the order top to bottom
Here is the same diagram, but with simpler set-up code, thanks to use of a theme:
Another example showing setting colours etc: