PPTX.gallery

Diagram

Entity Relationship

Use an entity relationship diagram to show the records a business keeps and how they relate, such as customers, orders and products.

entity-relationshiperDiagram
A customer places orders, an order contains line items, and each line item refers to a product.
The sample below, drawn with the gallery's default theme. Another theme, color scheme or variant redraws the same source in its fonts and colors.

First line

The first word of the source, erDiagram, names the Mermaid family; the rest follows Mermaid's syntax for it.

Alt text

A customer places orders, an order contains line items, and each line item refers to a product.

Markdown

A mermaid fence is a diagram; alt is its text alternative.
OPF Markdown
# Entity Relationship

```mermaid alt="A customer places orders, an order contains line items, and each line item refers to a product."
erDiagram
  CUSTOMER ||--o{ ORDER : places
  ORDER ||--|{ LINE_ITEM : contains
  PRODUCT ||--o{ LINE_ITEM : "appears in"
```

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:entity-relationship
OPF JSON
{
  "$schema": "https://openpresentation.org/schema/opf/v1",
  "name": "PPTX.gallery — diagrams/entity-relationship",
  "description": "Use an entity relationship diagram to show the records a business keeps and how they relate, such as customers, orders and products.",
  "tags": [
    "gallery:diagrams/entity-relationship"
  ],
  "slides": [
    {
      "id": "gallery-preview-1",
      "layout": "chart",
      "title": "Entity Relationship",
      "diagram": {
        "source": "erDiagram\n  CUSTOMER ||--o{ ORDER : places\n  ORDER ||--|{ LINE_ITEM : contains\n  PRODUCT ||--o{ LINE_ITEM : \"appears in\"",
        "alt": "A customer places orders, an order contains line items, and each line item refers to a product."
      }
    }
  ],
  "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.

Other Diagrams