{"version":"1.0","dimension":"diagrams","items":[{"id":"flowchart","name":"Flowchart","family":"flowchart","description":"Use a flowchart to show the steps and decisions of a process, such as how a lead moves through a sales pipeline.","alt":"A new lead is qualified. Qualified leads get a discovery call, a proposal and close as won; the rest are nurtured and return as leads.","source":"flowchart LR\n  A[New lead] --> B{Qualified?}\n  B -->|yes| C[Discovery call]\n  B -->|no| D[Nurture]\n  C --> E[Proposal]\n  E --> F[Closed won]\n  D --> A","syntax":"mermaid"},{"id":"sequence","name":"Sequence","family":"sequenceDiagram","description":"Use a sequence diagram to show the messages that pass between people or systems over time, such as the steps of a checkout.","alt":"The customer places an order with the store, the store asks payments to authorize the card, payments approves and the store confirms the order.","source":"sequenceDiagram\n  participant C as Customer\n  participant S as Store\n  participant P as Payments\n  C->>S: Place order\n  S->>P: Authorize card\n  P-->>S: Approved\n  S-->>C: Order confirmed","syntax":"mermaid"},{"id":"state","name":"State","family":"stateDiagram-v2","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.","alt":"A draft is submitted for review, returns to draft for changes or is accepted, and approved work is published.","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 --> [*]","syntax":"mermaid"},{"id":"entity-relationship","name":"Entity Relationship","family":"erDiagram","description":"Use an entity relationship diagram to show the records a business keeps and how they relate, such as customers, orders and products.","alt":"A customer places orders, an order contains line items, and each line item refers to a product.","source":"erDiagram\n  CUSTOMER ||--o{ ORDER : places\n  ORDER ||--|{ LINE_ITEM : contains\n  PRODUCT ||--o{ LINE_ITEM : \"appears in\"","syntax":"mermaid"},{"id":"mindmap","name":"Mind Map","family":"mindmap","description":"Use a mind map to break one idea into themes and sub-points, such as the pillars of a strategy.","alt":"The 2027 strategy has three themes: growth through new regions and partners, efficiency through automation and shared services, and people through hiring and training.","source":"mindmap\n  root((2027 Strategy))\n    Growth\n      New regions\n      Partners\n    Efficiency\n      Automation\n      Shared services\n    People\n      Hiring\n      Training","syntax":"mermaid"},{"id":"timeline","name":"Timeline","family":"timeline","description":"Use a timeline diagram to show periods and the events in each, grouped into phases, such as the quarters of a product launch.","alt":"The product launch plans research and pricing in Q1, runs a beta in Q2, reaches general availability in Q3 and expands in Q4.","source":"timeline\n  title Product launch\n  section Plan\n    Q1 : Research : Pricing\n  section Build\n    Q2 : Beta\n  section Launch\n    Q3 : General availability\n    Q4 : Expansion","syntax":"mermaid"},{"id":"user-journey","name":"User Journey","family":"journey","description":"Use a user journey to show the tasks a person goes through and how satisfied they are at each one, such as customer onboarding.","alt":"Customer onboarding: creating an account scores 5, verifying the email 3, importing data with support 2, and building a first report 4.","source":"journey\n  title Customer onboarding\n  section Sign up\n    Create account: 5: Customer\n    Verify email: 3: Customer\n  section First week\n    Import data: 2: Customer, Support\n    Build first report: 4: Customer","syntax":"mermaid"},{"id":"gantt","name":"Gantt","family":"gantt","description":"Use a Gantt diagram to show tasks on a calendar with their order and duration, such as the phases of a project plan.","alt":"Discovery runs interviews and synthesis in January; delivery runs design and build from late January to early March, ending with the launch milestone.","source":"gantt\n  dateFormat YYYY-MM-DD\n  axisFormat %b %d\n  tickInterval 2week\n  section Discovery\n    Interviews :a1, 2027-01-04, 14d\n    Synthesis :a2, after a1, 7d\n  section Delivery\n    Design :b1, after a2, 14d\n    Build :b2, after b1, 28d\n    Launch :milestone, after b2, 0d","syntax":"mermaid"},{"id":"pie","name":"Pie","family":"pie","description":"Use a pie diagram for a quick picture of shares of a whole; use a chart instead when the values should stay editable data.","alt":"Revenue by region: North America 46%, Europe 31%, Asia Pacific 17% and other regions 6%.","source":"pie title Revenue by region\n  \"North America\" : 46\n  \"Europe\" : 31\n  \"Asia Pacific\" : 17\n  \"Other\" : 6","syntax":"mermaid"},{"id":"quadrant","name":"Quadrant","family":"quadrantChart","description":"Use a quadrant chart to place items on two axes and name the four regions they fall into, such as features by effort and impact.","alt":"Features by effort and impact: SSO is a quick win, data export needs careful planning, dark mode is a fill-in and custom themes are best avoided.","source":"quadrantChart\n  title Feature prioritization\n  x-axis Low effort --> High effort\n  y-axis Low impact --> High impact\n  quadrant-1 Plan carefully\n  quadrant-2 Quick wins\n  quadrant-3 Fill-ins\n  quadrant-4 Avoid\n  SSO: [0.3, 0.8]\n  Dark mode: [0.2, 0.35]\n  Data export: [0.7, 0.75]\n  Custom themes: [0.8, 0.2]","syntax":"mermaid"},{"id":"sankey","name":"Sankey","family":"sankey","description":"Use a Sankey diagram to show how a quantity flows and splits between stages, such as visitors becoming trials and paying customers.","alt":"Of 1,000 visitors, 600 bounce and 400 start a trial; of the trials, 120 become paid and 280 churn.","source":"sankey\n  Visitors,Trial,400\n  Visitors,Bounce,600\n  Trial,Paid,120\n  Trial,Churned,280","syntax":"mermaid"},{"id":"kanban","name":"Kanban","family":"kanban","description":"Use a kanban diagram to show work items in the columns of a workflow, such as the status of a team's current projects.","alt":"Backlog holds the pricing page and usage alerts, SSO login is in progress, billing export is in review and onboarding emails are done.","source":"kanban\n  Backlog\n    a[Pricing page]\n    b[Usage alerts]\n  In progress\n    c[SSO login]\n  Review\n    d[Billing export]\n  Done\n    e[Onboarding emails]","syntax":"mermaid"},{"id":"ishikawa","name":"Ishikawa (Fishbone)","family":"ishikawa-beta","description":"Use an Ishikawa (fishbone) diagram to group the possible causes of one problem, such as a root-cause review of late deliveries.","alt":"Causes of late deliveries: understaffed shifts (people), manual routing (process), outdated tracking (tools) and missed pickups (suppliers).","source":"ishikawa-beta\n  Late deliveries\n    People\n      Understaffed shifts\n    Process\n      Manual routing\n    Tools\n      Outdated tracking\n    Suppliers\n      Missed pickups","syntax":"mermaid"},{"id":"architecture","name":"Architecture","family":"architecture-beta","description":"Use an architecture diagram to show services, how they connect and where they run, such as the parts of a web application.","alt":"In the cloud, the web app calls the API and the API reads and writes the database.","source":"architecture-beta\n  group cloud(cloud)[Cloud]\n  service web(internet)[Web app] in cloud\n  service api(server)[API] in cloud\n  service db(database)[Database] in cloud\n  web:R --> L:api\n  api:R --> L:db","syntax":"mermaid"},{"id":"dot-pipeline","name":"DOT Pipeline","syntax":"dot","family":"flowchart","description":"Use a layered DOT graph to show a release pipeline, its continuous integration group and a review decision.","alt":"A commit is built and tested in continuous integration. Passing tests go to approval and release; failed tests return to build.","source":"digraph release {\n  rankdir=LR\n  node [shape=box, style=rounded]\n  subgraph cluster_ci {\n    label=\"Continuous integration\"\n    Commit -> Build -> Test\n  }\n  Review [shape=diamond, label=\"Approved?\"]\n  Test -> Review [label=\"passes\"]\n  Test -> Build [label=\"fails\", style=dashed]\n  Review -> Release [label=\"yes\"]\n  Release [shape=ellipse]\n}"},{"id":"dot-states","name":"DOT States","syntax":"dot","family":"flowchart","description":"Use a DOT graph with labeled edges and circular nodes to show a short approval lifecycle.","alt":"A draft is submitted for review; review approves it or sends it back.","source":"digraph states {\n  rankdir=LR\n  node [shape=circle]\n  Draft -> Review [label=\"submit\"]\n  Review -> Draft [label=\"changes\"]\n  Review -> Published [label=\"approve\"]\n  Published [shape=doublecircle]\n}"},{"id":"plantuml-sequence","name":"PlantUML Sequence","syntax":"plantuml","family":"sequence","description":"Use a PlantUML sequence to show API messages and the valid or invalid response paths.","alt":"The author posts a deck to the API, which saves it in the store. A valid deck returns 201 Created; an invalid deck returns 422 findings.","source":"@startuml\nactor Author\nparticipant \"Deck API\" as API\ndatabase Store\nAuthor -> API : POST /decks\nAPI -> Store : save\nStore --> API : id\nalt valid\n  API --> Author : 201 Created\nelse invalid\n  API --> Author : 422 findings\nend\n@enduml"},{"id":"plantuml-activity","name":"PlantUML Activity","syntax":"plantuml","family":"flowchart","description":"Use the current PlantUML activity syntax to show actions, a decision and the paths to completion.","alt":"A brief is written and reviewed. Approval leads to building the deck; rejection leads to revision, then the activity stops.","source":"@startuml\nstart\n:Write the brief;\nif (Approved?) then (yes)\n  :Build the deck;\nelse (no)\n  :Revise it;\nendif\nstop\n@enduml"}],"name":"Diagrams","description":"Mermaid, Graphviz DOT and PlantUML samples as OPF diagrams, drawn by the shared engine in the deck's own fonts and colors.","category":"diagrams","routes":{"web":"https://opf.gallery/diagrams","api":"https://opf.gallery/api/diagrams.json"},"opfSchema":{"name":"diagram","url":"https://openpresentation.org/schema/opf/v1#/$defs/Diagram"},"bestPractices":[{"title":"Say what it shows in alt","description":"Give every diagram an alt that states what it shows, not that it is a diagram. Without one, engines derive a text alternative from the diagram type and its labels."},{"title":"Let the deck choose colors","description":"Leave out source-specific colors and fonts. OPF styles all three syntaxes from the slide's color scheme, font scheme and variant; an explicit Mermaid style can stop following the deck."},{"title":"Prefer a payload when it fits","description":"A chart or timeline payload keeps the data editable and gets the chart and timeline design. Use a diagram when only a diagram can show the structure."},{"title":"Keep it readable","description":"Short labels and one idea per diagram. When a diagram does not fit, give it its own slide or region, turn its direction (LR to TB) or split it in two."},{"title":"Use the language subset deliberately","description":"DOT uses layered layout; other Graphviz layout engines and HTML table labels are refused. PlantUML supports selected sequence, class, state, activity, use-case, component, mind-map and Gantt constructs; preprocessing and unsupported diagrams are refused."}],"lastResearched":"2026-11-08","note":"A diagram is an OPF content kind written as Mermaid, Graphviz DOT or PlantUML source in a slide, block or layout region. The object form carries { source, syntax, alt }; omitted syntax means Mermaid. OPF reads bounded DOT and PlantUML subsets and adapts them to the same pele drawing engine as Mermaid. These are representative samples, not separate renderer installations: no Graphviz executable or PlantUML JVM runs, and their full language features and pixel layouts are not promised. The deck supplies fonts and colors. Unsupported constructs report a finding instead of silently becoming another diagram. PPTX uses grouped native shapes only when the rendered family and drawing qualify; otherwise it uses an SVG picture with a PNG fallback. A syntax name alone does not establish native export fidelity."}