Diagram
State
Use a state diagram to show the states something passes through and what moves it between them, such as a document's approval lifecycle.
statestateDiagram-v2
First line
The first word of the source, stateDiagram-v2, names the Mermaid family; the rest follows Mermaid's syntax for it.
Alt text
A draft is submitted for review, returns to draft for changes or is accepted, and approved work is published.
Markdown
A mermaid fence is a diagram; alt is its text alternative.OPF Markdown
# State
```mermaid alt="A draft is submitted for review, returns to draft for changes or is accepted, and approved work is published."
stateDiagram-v2
direction LR
[*] --> Draft
Draft --> Review: submit
Review --> Draft: changes
Review --> Approved: accept
Approved --> Published
Published --> [*]
```
Layouts That Take It
Give the slide one of these layouts to place the diagram in a region, or none to compose it automatically.
OPF Config
diagrams:stateOPF JSON
{
"$schema": "https://openpresentation.org/schema/opf/v1",
"name": "PPTX.gallery — diagrams/state",
"description": "Use a state diagram to show the states something passes through and what moves it between them, such as a document's approval lifecycle.",
"tags": [
"gallery:diagrams/state"
],
"slides": [
{
"id": "gallery-preview-1",
"layout": "chart",
"title": "State",
"diagram": {
"source": "stateDiagram-v2\n direction LR\n [*] --> Draft\n Draft --> Review: submit\n Review --> Draft: changes\n Review --> Approved: accept\n Approved --> Published\n Published --> [*]",
"alt": "A draft is submitted for review, returns to draft for changes or is accepted, and approved work is published."
}
}
],
"catalogs": {
"default": {
"source": "https://www.pptx.gallery",
"layouts": {
"chart": {
"name": "Chart",
"summary": "One to six charts, with an optional note.",
"tags": [
"Visuals"
],
"direction": "column",
"regions": [
{
"name": "title"
},
{
"name": "charts",
"accepts": [
"chart",
"group",
"diagram"
],
"role": "primary",
"flow": "grid"
},
{
"name": "note",
"size": "auto",
"accepts": [
"text"
],
"role": "supporting",
"flow": "none"
}
],
"description": "Give a chart enough space to show its evidence. Use the title to state the conclusion and labels to explain the measures.",
"preview": {
"vectorSrc": "https://www.pptx.gallery/layout-previews/chart.svg"
}
}
}
}
}
}Open in visual editorOpen in Inspector
Load this config in the gallery's visual editor, or in the Inspector at pptx.dev.