# Mermaid diagrams in .NET

Render supported Mermaid diagrams natively in .NET. Explore the source, native output, documented grammar and layout limits, and C# integration.

ChartForgeX.Mermaid parses Mermaid source and renders it through the native ChartForgeX engine, with no browser, no Node.js and no mermaid-cli.

**Families rendered**

33

**Atlas themes**

2

**Browsers needed**

0

 [See every family](#atlas) [Edit this diagram](/playground/?src=/site/atlas/sequence.mmd) 

Mermaidsequence.mmd

```mermaid
---
title: Dashboard sign-in
---
sequenceDiagram
  autonumber
  actor User
  participant App
  participant IdP as Identity provider
  participant API
  User->>App: Open dashboard
  App->>IdP: Authorization request
  IdP-->>App: ID token + access token
  App->>API: GET /reports (Bearer token)
  alt token valid
    API-->>App: 200 report data
  else token expired
    API-->>App: 401 Unauthorized
  end
  Note over App,API: Tokens refresh silently before expiry
  App-->>User: Render charts
```

sequence.svg21 KB, rendered by ChartForgeX

 ![A sequence diagram rendered by ChartForgeX from the Mermaid source beside it: a user, an app, an identity provider and an API exchanging tokens.](/site/atlas/sequence-dark.svg) 

## Family atlas

Every diagram below is drawn by ChartForgeX from the source shown with it. Syntax support does not mean the same layout or pixels as Mermaid's browser renderer. Each diagram is drawn by ChartForgeX with your theme, and diagnostics tell you when source is kept without an exact visual interpretation.

### Flows and structure 13

- [!\[Flowchart diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/flowchart-light.svg)](/site/atlas/flowchart-light.svg) [!\[Flowchart diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/flowchart-dark.svg)](/site/atlas/flowchart-dark.svg) 
  
  #### Flowchart
  
  Steps, decisions and branches in a process.
  
    Source 10 lines 
  
  Mermaidflowchart.mmd
  
  ```mermaid
  ---
  title: Incident response
  ---
  flowchart TD
    alert([Alert raised]) --> triage{Known issue?}
    triage -->|yes| runbook[Run the runbook]
    triage -->|no| owner[Page the<br/>service owner]
    runbook --> verify[Verify recovery]
    owner --> fix[Ship a fix]
    fix --> verify
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/flowchart.mmd)
- [!\[Sequence diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/sequence-light.svg)](/site/atlas/sequence-light.svg) [!\[Sequence diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/sequence-dark.svg)](/site/atlas/sequence-dark.svg) 
  
  #### Sequence
  
  Messages between participants, in the order they happen.
  
    Source 20 lines 
  
  Mermaidsequence.mmd
  
  ```mermaid
  ---
  title: Dashboard sign-in
  ---
  sequenceDiagram
    autonumber
    actor User
    participant App
    participant IdP as Identity provider
    participant API
    User->>App: Open dashboard
    App->>IdP: Authorization request
    IdP-->>App: ID token + access token
    App->>API: GET /reports (Bearer token)
    alt token valid
      API-->>App: 200 report data
    else token expired
      API-->>App: 401 Unauthorized
    end
    Note over App,API: Tokens refresh silently before expiry
    App-->>User: Render charts
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/sequence.mmd)
- [!\[Class diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/class-light.svg)](/site/atlas/class-light.svg) [!\[Class diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/class-dark.svg)](/site/atlas/class-dark.svg) 
  
  #### Class
  
  Types, their members and how they relate.
  
    Source 18 lines 
  
  Mermaidclass.mmd
  
  ```mermaid
  ---
  title: Chart model
  ---
  classDiagram
    class Chart {
      +string Title
      +WithSize(width, height)
      +ToSvg() string
    }
    class ChartSeries {
      +string Name
      +ChartPoint[] Points
    }
    class VisualTheme {
      +VisualTypography Typography
    }
    Chart "1" *-- "many" ChartSeries : contains
    Chart --> VisualTheme : uses
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/class.mmd)
- [!\[State diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/state-light.svg)](/site/atlas/state-light.svg) [!\[State diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/state-dark.svg)](/site/atlas/state-dark.svg) 
  
  #### State
  
  Composite states, concurrent regions, notes and safe named or direct paints.
  
    Source 15 lines 
  
  Mermaidstate.mmd
  
  ```mermaid
  ---
  title: Document review
  ---
  stateDiagram-v2
  direction LR
  classDef marked fill:#fef9c3,stroke:#92400e,color:#78350f
  Ready --> Review:::marked: submit
  class Ready marked
  style Review fill:#dbeafe,color:#1e3a8a
  state Processing {
    direction TB
    InnerReady --> InnerDone: finish
  }
  Review --> Processing: accept
  Processing --> Done: complete
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/state.mmd)
- [!\[Entity relationship diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/er-light.svg)](/site/atlas/er-light.svg) [!\[Entity relationship diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/er-dark.svg)](/site/atlas/er-dark.svg) 
  
  #### Entity relationship
  
  Entities, their attributes and the cardinality between them.
  
    Source 17 lines 
  
  Mermaider.mmd
  
  ```mermaid
  ---
  title: Orders schema
  ---
  erDiagram
    CUSTOMER ||--o{ ORDER : places
    ORDER ||--|{ LINE_ITEM : contains
    PRODUCT ||--o{ LINE_ITEM : "ordered in"
    CUSTOMER {
      string id PK
      string name
      string email
    }
    ORDER {
      string id PK
      string customerId FK
      date placed
    }
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/er.mmd)
- [!\[Requirement diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/requirement-light.svg)](/site/atlas/requirement-light.svg) [!\[Requirement diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/requirement-dark.svg)](/site/atlas/requirement-dark.svg) 
  
  #### Requirement
  
  Requirements and the elements that satisfy or verify them.
  
    Source 28 lines 
  
  Mermaidrequirement.mmd
  
  ```mermaid
  ---
  title: Sign-in requirements
  ---
  requirementDiagram
  direction LR
  functionalRequirement mfa_req {
    id: "SEC-1"
    text: Every account signs in with a strong method.
    risk: High
    verifymethod: Test
  }
  performanceRequirement report_req {
    id: "OPS-4"
    text: The weekly report renders in under a second.
    risk: Low
    verifymethod: Analysis
  }
  element auth_service {
    type: service
    docref: "Identity provider"
  }
  element report_job {
    type: job
    docref: "ChartForgeX report"
  }
  auth_service - satisfies -> mfa_req
  report_job - verifies -> mfa_req
  report_job - satisfies -> report_req
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/requirement.mmd)
- [!\[Architecture diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/architecture-light.svg)](/site/atlas/architecture-light.svg) [!\[Architecture diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/architecture-dark.svg)](/site/atlas/architecture-dark.svg) 
  
  #### Architecture
  
  Services, groups and connections on a system map.
  
    Source 16 lines 
  
  Mermaidarchitecture.mmd
  
  ```mermaid
  ---
  title: Report platform
  ---
  architecture-beta
  group edge(cloud)[Edge]
  group core(cloud)[Platform]
  group data(database)[Data] in core
  service web(internet)[Web] in edge
  service api(server)[API] in core
  service renderer(server)[Renderer] in core
  service sql(database)[SQL] in data
  service blob(disk)[Cache] in data
  web:R --> L:api
  api:R --> L:renderer
  renderer:B --> T:blob
  api:B --> T:sql
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/architecture.mmd)
- [!\[C4 diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/c4-light.svg)](/site/atlas/c4-light.svg) [!\[C4 diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/c4-dark.svg)](/site/atlas/c4-dark.svg) 
  
  #### C4
  
  People, systems, nested boundaries and ordered relationships.
  
    Source 13 lines 
  
  Mermaidc4.mmd
  
  ```mermaid
  C4Container
  title Checkout platform
  Person(customer, "Customer", "Places an order")
  Enterprise_Boundary(company, "Company") {
    System_Boundary(shop, "Store") {
      Container(web, "Web app", "Browser", "Browse products and complete checkout")
      Container(api, "Order service", ".NET", "Validate orders and coordinate payment")
      ContainerDb(db, "Orders", "SQL", "Store orders and their fulfilment state")
    }
  }
  Rel(customer, web, "Places an order")
  Rel(web, api, "Submits checkout", "HTTPS")
  Rel(api, db, "Stores the order")
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/c4.mmd)
- [!\[Block diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/block-light.svg)](/site/atlas/block-light.svg) [!\[Block diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/block-dark.svg)](/site/atlas/block-dark.svg) 
  
  #### Block
  
  Blocks placed on a column grid, joined by links.
  
    Source 12 lines 
  
  Mermaidblock.mmd
  
  ```mermaid
  ---
  title: Render pipeline
  ---
  block-beta
  columns 3
  collect["Collect"] model["Typed model"] render["Render"]
  space:2 svg["SVG"]
  space:2 png["PNG"]
  collect --> model
  model --> render
  render --> svg
  render --> png
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/block.mmd)
- [!\[Packet diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/packet-light.svg)](/site/atlas/packet-light.svg) [!\[Packet diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/packet-dark.svg)](/site/atlas/packet-dark.svg) 
  
  #### Packet
  
  Bit ranges of a protocol header, row by row.
  
    Source 8 lines 
  
  Mermaidpacket.mmd
  
  ```mermaid
  ---
  title: TCP header
  ---
  packet-beta
  0-15: "Source Port"
  16-31: "Destination Port"
  32-63: "Sequence Number"
  +32: "Acknowledgment Number"
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/packet.mmd)
- [!\[Agentflow diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/agentflow-light.svg)](/site/atlas/agentflow-light.svg) [!\[Agentflow diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/agentflow-dark.svg)](/site/atlas/agentflow-dark.svg) 
  
  #### Agentflow
  
  Nested agent flows with inert connector and metadata facts.
  
    Source 33 lines 
  
  Mermaidagentflow.mmd
  
  ```mermaid
  ---
  title: Review workflow
  ---
  agentflow-beta LR
  connector store["Object store"]
  store@{ endpoint: "https://example.invalid/data", protocol: http }
  global
    shared["Policy guide"]@{ shape: refdoc }
  end
  flow team["Review team"]
    brief["Request"]@{ shape: input }
    flow worker["Worker"]
      read["Read input"]@{
        shape: tool
        connectorRef: store.read
        policy:
          retries: 2
          enabled: true
          tags: [safe, deterministic]
          constructor: ignored
        instruction: "Display data, never execute it."
      }
      gate["Ready?"]@{ shape: decision }
      read edge1@--> gate
      gate -- no --> read
      read -.- shared
    end
    worker@{ view: collapsed }
    publish["Publish"]@{ shape: action }
    brief --> read
    gate --x publish
  end
  edge1@{ instruction: "Only after validation" }
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/agentflow.mmd)
- [!\[ZenUML diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/zenuml-light.svg)](/site/atlas/zenuml-light.svg) [!\[ZenUML diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/zenuml-dark.svg)](/site/atlas/zenuml-dark.svg) 
  
  #### ZenUML
  
  Code-like calls and control fragments drawn by the native sequence owner.
  
    Source 41 lines 
  
  Mermaidzenuml.mmd
  
  ```mermaid
  zenuml
  title Checkout occurrences
  group "Application" {
    @Actor User
    @Control Service
  }
  @Database Store
  @Queue Bus
  @Starter(User)
  // Accept the request
  Service.checkout(order) {
    if (valid && !cancelled) {
      String receipt = new Receipt(order) {
        Store.save(order)
        return saved
      }
    } else {
      return declined
    }
    loop (retries < 3) {
      Store.retry(order)
    }
    par {
      Bus: ready(order)
    }
    critical (commitLock) {
      Store.commit()
    }
    opt (notify) {
      Bus: notify(order)
    }
    try {
      Store.flush()
    } catch (StorageError error) {
      Store.recover(error)
    } finally {
      Store.close()
    }
    return accepted
  }
  Service --> User: confirmed
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/zenuml.mmd)
- [!\[Railroad diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/railroad-light.svg)](/site/atlas/railroad-light.svg) [!\[Railroad diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/railroad-dark.svg)](/site/atlas/railroad-dark.svg) 
  
  #### Railroad
  
  Symbolic grammar rules and choices; bounded IR, EBNF, ABNF and PEG frontends.
  
    Source 5 lines 
  
  Mermaidrailroad.mmd
  
  ```mermaid
  railroad-beta
  title "Expression grammar"
  expression = sequence(nonterminal("term"), zeroOrMore(sequence(choice(terminal("+"), terminal("-")), nonterminal("term")))) ;
  term = sequence(optional(terminal("-")), oneOrMore(nonterminal("digit"))) ;
  digit = choice(terminal("0"), terminal("1"), special("another decimal digit")) ;
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/railroad.mmd)

 

### Planning and process 8

- [!\[Gantt diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/gantt-light.svg)](/site/atlas/gantt-light.svg) [!\[Gantt diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/gantt-dark.svg)](/site/atlas/gantt-dark.svg) 
  
  #### Gantt
  
  Tasks, dependencies and milestones on a calendar.
  
    Source 11 lines 
  
  Mermaidgantt.mmd
  
  ```mermaid
  gantt
    title Release train
    dateFormat YYYY-MM-DD
    section Engine
    Layout pass      :done,    l1, 2026-09-01, 12d
    Label placement  :active,  l2, after l1, 10d
    section Surfaces
    PNG parity       :         s1, 2026-09-10, 14d
    Email preview    :         s2, after s1, 7d
    section Release
    Ship 2.0         :milestone, m1, after l2 s2, 0d
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/gantt.mmd)
- [!\[Timeline diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/timeline-light.svg)](/site/atlas/timeline-light.svg) [!\[Timeline diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/timeline-dark.svg)](/site/atlas/timeline-dark.svg) 
  
  #### Timeline
  
  Ordered events in authored periods and sections, without invented calendar durations.
  
    Source 9 lines 
  
  Mermaidtimeline.mmd
  
  ```mermaid
  timeline
  title Delivery history
  section Discovery
  Before launch: Interview users
   : Review findings
  section Delivery
  Launch: Ship product<br>and docs : Invite users
  section Discovery
  After launch: Learn and improve
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/timeline.mmd)
- [!\[Journey diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/journey-light.svg)](/site/atlas/journey-light.svg) [!\[Journey diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/journey-dark.svg)](/site/atlas/journey-dark.svg) 
  
  #### Journey
  
  Task scores, actors and repeated authored sections.
  
    Source 8 lines 
  
  Mermaidjourney.mmd
  
  ```mermaid
  journey
  title Support journey
  section Contact
  Open ticket: 2: Customer, Agent
  section Resolve
  Diagnose: 4: Agent
  section Contact
  Confirm recovery: 5: Customer, Agent
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/journey.mmd)
- [!\[Kanban diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/kanban-light.svg)](/site/atlas/kanban-light.svg) [!\[Kanban diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/kanban-dark.svg)](/site/atlas/kanban-dark.svg) 
  
  #### Kanban
  
  Work items in board columns, with optional metadata.
  
    Source 11 lines 
  
  Mermaidkanban.mmd
  
  ```mermaid
  ---
  title: Playground launch
  ---
  kanban
    todo[To do]
      docs[Write playground docs]
      share[Share links]
    doing[In progress]
      engine[WebAssembly engine]@{ priority: "High" }
    done[Done]
      site[chartforgex.com]
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/kanban.mmd)
- [!\[Git graph diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/gitgraph-light.svg)](/site/atlas/gitgraph-light.svg) [!\[Git graph diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/gitgraph-dark.svg)](/site/atlas/gitgraph-dark.svg) 
  
  #### Git graph
  
  Commits, branches, merges and tags.
  
    Source 12 lines 
  
  Mermaidgitgraph.mmd
  
  ```mermaid
  ---
  title: Release 2.0 branch
  ---
  gitGraph
    commit id: "init"
    branch feature
    checkout feature
    commit id: "renderer"
    commit id: "tests"
    checkout main
    commit id: "docs"
    merge feature id: "merge" tag: "v2.0"
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/gitgraph.mmd)
- [!\[Swimlane diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/swimlane-light.svg)](/site/atlas/swimlane-light.svg) [!\[Swimlane diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/swimlane-dark.svg)](/site/atlas/swimlane-dark.svg) 
  
  #### Swimlane
  
  A process split into lanes by who owns each step.
  
    Source 15 lines 
  
  Mermaidswimlane.mmd
  
  ```mermaid
  ---
  title: Pull request flow
  ---
  swimlane-beta LR
  subgraph Author
   A[Write source] --> B[Open pull request]
  end
  subgraph Build
   C{Checks pass?} --> D[Render report]
  end
  subgraph Reader
   E[Read in email]
  end
  B --> C
  D --> E
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/swimlane.mmd)
- [!\[Use case diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/usecase-light.svg)](/site/atlas/usecase-light.svg) [!\[Use case diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/usecase-dark.svg)](/site/atlas/usecase-dark.svg) 
  
  #### Use case
  
  Actors and the use cases inside a system boundary.
  
    Source 14 lines 
  
  Mermaidusecase.mmd
  
  ```mermaid
  ---
  title: Online store
  ---
  usecase-beta
  direction LR
  actor Customer
  systemBoundary Store[Online store]
   Browse("Browse products")
   Pay("Pay for order")
   Authenticate("Authenticate")
  end
  Customer --> Browse
  Browse ..> : include Authenticate
  Pay --|> Browse
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/usecase.mmd)
- [!\[Event modeling diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/eventmodeling-light.svg)](/site/atlas/eventmodeling-light.svg) [!\[Event modeling diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/eventmodeling-dark.svg)](/site/atlas/eventmodeling-dark.svg) 
  
  #### Event modeling
  
  Screens, commands, events and views across time frames.
  
    Source 14 lines 
  
  Mermaideventmodeling.mmd
  
  ```mermaid
  ---
  title: Shopping cart events
  ---
  eventmodeling
  tf 01 ui CartUI
  tf 02 cmd AddItem
  tf 03 evt Cart.ItemAdded [[ItemAdded01]]
  tf 04 rmo Cart.CartView ->> 03
  rf 05 pcr InventoryProcessor
  timeframe 06 event Inventory.Reserved
  data ItemAdded01 `json`{
    "sku": "ABC",
    "quantity": 1
  }
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/eventmodeling.mmd)

 

### Charts 6

- [!\[Pie diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/pie-light.svg)](/site/atlas/pie-light.svg) [!\[Pie diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/pie-dark.svg)](/site/atlas/pie-dark.svg) 
  
  #### Pie
  
  Parts of a whole, with optional values.
  
    Source 6 lines 
  
  Mermaidpie.mmd
  
  ```mermaid
  pie showData
    title Sign-ins by method
    "Passkey" : 8900
    "Authenticator app" : 6200
    "SMS code" : 1300
    "Password only" : 1500
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/pie.mmd)
- [!\[XY chart diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/xychart-light.svg)](/site/atlas/xychart-light.svg) [!\[XY chart diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/xychart-dark.svg)](/site/atlas/xychart-dark.svg) 
  
  #### XY chart
  
  Bars and lines on shared category and value axes.
  
    Source 6 lines 
  
  Mermaidxychart.mmd
  
  ```mermaid
  xychart-beta
    title "Tickets closed per sprint"
    x-axis [S1, S2, S3, S4, S5, S6, S7, S8]
    y-axis "Tickets" 0 --> 120
    bar [48, 61, 57, 72, 80, 77, 94, 103]
    line [48, 61, 57, 72, 80, 77, 94, 103]
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/xychart.mmd)
- [!\[Sankey diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/sankey-light.svg)](/site/atlas/sankey-light.svg) [!\[Sankey diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/sankey-dark.svg)](/site/atlas/sankey-dark.svg) 
  
  #### Sankey
  
  Flows between stages, sized by volume.
  
    Source 10 lines 
  
  Mermaidsankey.mmd
  
  ```mermaid
  ---
  title: Sign-ins by network and method
  ---
  sankey-beta
  Office network,Passkey,5200
  Office network,Authenticator app,3100
  Remote,Passkey,3700
  Remote,Authenticator app,3100
  Remote,SMS code,1300
  Remote,Password only,1500
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/sankey.mmd)
- [!\[Radar diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/radar-light.svg)](/site/atlas/radar-light.svg) [!\[Radar diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/radar-dark.svg)](/site/atlas/radar-dark.svg) 
  
  #### Radar
  
  Several measures compared on radial axes.
  
    Source 7 lines 
  
  Mermaidradar.mmd
  
  ```mermaid
  radar-beta
    title Security posture
    axis mail["Mail auth"], dnssec["DNSSEC"], tls["TLS"], ct["CT"], policy["Policy"]
    curve current["Current"]{91, 72, 88, 95, 79}
    curve target["Target"]{95, 90, 95, 95, 90}
    min 0
    max 100
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/radar.mmd)
- [!\[Treemap diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/treemap-light.svg)](/site/atlas/treemap-light.svg) [!\[Treemap diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/treemap-dark.svg)](/site/atlas/treemap-dark.svg) 
  
  #### Treemap
  
  Hierarchical totals as nested rectangles.
  
    Source 11 lines 
  
  Mermaidtreemap.mmd
  
  ```mermaid
  ---
  title: Device inventory
  ---
  treemap-beta
  "Infrastructure"
      "Identity": 42
      "Messaging": 18
      "Endpoints"
          "Windows": 24
          "macOS": 9
          "Linux": 6
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/treemap.mmd)
- [!\[Quadrant diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/quadrant-light.svg)](/site/atlas/quadrant-light.svg) [!\[Quadrant diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/quadrant-dark.svg)](/site/atlas/quadrant-dark.svg) 
  
  #### Quadrant
  
  Items placed on two axes split into four quadrants.
  
    Source 12 lines 
  
  Mermaidquadrant.mmd
  
  ```mermaid
  quadrantChart
    title Feature priorities
    x-axis Low effort --> High effort
    y-axis Low impact --> High impact
    quadrant-1 Plan carefully
    quadrant-2 Do now
    quadrant-3 Maybe later
    quadrant-4 Avoid
    Dark theme: [0.25, 0.85]
    PNG export: [0.7, 0.8]
    Tooltips: [0.35, 0.4]
    Custom fonts: [0.8, 0.3]
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/quadrant.mmd)

 

### Thinking tools 6

- [!\[Mind map diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/mindmap-light.svg)](/site/atlas/mindmap-light.svg) [!\[Mind map diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/mindmap-dark.svg)](/site/atlas/mindmap-dark.svg) 
  
  #### Mind map
  
  Ideas branching out from a central topic.
  
    Source 17 lines 
  
  Mermaidmindmap.mmd
  
  ```mermaid
  ---
  title: What ChartForgeX covers
  ---
  mindmap
    root((ChartForgeX))
      Outputs
        SVG
        PNG
        HTML
      Authoring
        Fluent C#
        Markdown fences
        Mermaid
      Hosts
        Reports
        Email
        Dashboards
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/mindmap.mmd)
- [!\[Tree view diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/treeview-light.svg)](/site/atlas/treeview-light.svg) [!\[Tree view diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/treeview-dark.svg)](/site/atlas/treeview-dark.svg) 
  
  #### Tree view
  
  A folder or outline hierarchy.
  
    Source 11 lines 
  
  Mermaidtreeview.mmd
  
  ```mermaid
  ---
  title: Repository layout
  ---
  treeView-beta
      "src"
          "ChartForgeX"
              "VisualBlocks"
          "ChartForgeX.Mermaid"
              "MermaidParser.cs"
              "MermaidTreeViewParser.cs"
      "README.md"
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/treeview.mmd)
- [!\[Venn diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/venn-light.svg)](/site/atlas/venn-light.svg) [!\[Venn diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/venn-dark.svg)](/site/atlas/venn-dark.svg) 
  
  #### Venn
  
  Proportional set circles, real intersections and reported area-fit limits.
  
    Source 6 lines 
  
  Mermaidvenn.mmd
  
  ```mermaid
  venn-beta
  set A[First]: 100
  set B[Second]: 60
  union A,B[Shared]: 25
  style A fill:#ee4455,fill-opacity:0.25,stroke-width:3
  style A,B fill:#2233ff,fill-opacity:1,stroke:#112233,stroke-width:2
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/venn.mmd)
- [!\[Ishikawa diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/ishikawa-light.svg)](/site/atlas/ishikawa-light.svg) [!\[Ishikawa diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/ishikawa-dark.svg)](/site/atlas/ishikawa-dark.svg) 
  
  #### Ishikawa
  
  Causes grouped by category behind one effect.
  
    Source 12 lines 
  
  Mermaidishikawa.mmd
  
  ```mermaid
  ---
  title: Why the release slipped
  ---
  ishikawa-beta
  Delayed release
    People
      Handoffs
        Timezone gaps
    Process
      Late review
    Platform
      Slow build
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/ishikawa.mmd)
- [!\[Wardley diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/wardley-light.svg)](/site/atlas/wardley-light.svg) [!\[Wardley diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/wardley-dark.svg)](/site/atlas/wardley-dark.svg) 
  
  #### Wardley
  
  Components mapped by visibility and evolution.
  
    Source 22 lines 
  
  Mermaidwardley.mmd
  
  ```mermaid
  wardley-beta
  title Platform map
  size [900, 600]
  evolution Genesis -> Custom Built -> Product -> Commodity
  anchor User [0.95, 0.05]
  component Portal [0.80, 0.35] inertia
  component API [0.70, 0.45] (build)
  component Identity [0.55, 0.65] label [-12, 18]
  User -> Portal
  Portal +'uses'> API
  API -.-> Identity;optional
  evolve API 0.75
  note "Operational pressure" [0.35, 0.75]
  annotations [0.12, 0.88]
  annotation 1, [0.60, 0.50] "Improve automation"
  accelerator Faster [0.42, 0.62]
  deaccelerator Risk [0.48, 0.68]
  pipeline API {
    component Build [0.30]
    component Buy [0.55]
    component Commodity [0.80]
  }
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/wardley.mmd)
- [!\[Cynefin diagram rendered by ChartForgeX from its Mermaid source.\](/site/atlas/cynefin-light.svg)](/site/atlas/cynefin-light.svg) [!\[Cynefin diagram rendered by ChartForgeX from its Mermaid source, dark theme.\](/site/atlas/cynefin-dark.svg)](/site/atlas/cynefin-dark.svg) 
  
  #### Cynefin
  
  Situations sorted into Cynefin decision domains.
  
    Source 13 lines 
  
  Mermaidcynefin.mmd
  
  ```mermaid
  cynefin-beta
  title Service decisions
  complex
   "Discover demand"
  complicated
   "Analyze capacity"
  chaotic
   "Contain outage"
  clear
   "Run checklist"
  confusion
   "Investigate context"
  complex --> complicated : "Learn"
  ```
  
    [Edit in playground](/playground/?src=/site/atlas/cynefin.mmd)

 

Semantic fixtures use Mermaid.js 12.2.0, with additional reference lanes pinned to 10.9.8 and 11.17.2. These examples do not establish complete compatibility with every release or syntax form. The [support matrix](/docs/mermaid-support-matrix/) lists the documented syntax, native models and limits.

## Use it from .NET

The atlas renders come from these calls. Install `ChartForgeX.Mermaid` for diagrams, and the Markdown bridge when documents hold `mermaid` fences.

## Render Mermaid from C#

```csharp
using ChartForgeX.Mermaid;
using ChartForgeX.VisualArtifacts;

MermaidRenderResult result = MermaidRenderer.Render(source);
if (!result.HasErrors && result.Artifact != null) {
    result.Artifact.SaveSvg("diagram.svg");
    result.Artifact.SavePng("diagram.png");
}
```

Check `result.Diagnostics` even when rendering succeeds. Warnings identify syntax or configuration that was kept without an exact visual interpretation.

## Render Mermaid fences in Markdown

Add `ChartForgeX.Markup.Mermaid` when Markdown documents contain `mermaid` fences. The bridge keeps the dependency boundary clean: `ChartForgeX.Mermaid` owns parsing and conversion, and the markup bridge only adapts fence metadata and diagnostics.

```csharp
using ChartForgeX.Markup.Mermaid;

var result = new MermaidVisualMarkupParser().Parse(markdown);
```

## How rendering differs from Mermaid.js

- Diagrams are laid out and drawn by ChartForgeX, so the output uses your ChartForgeX theme and typography rather than Mermaid's CSS.
- The `default` and `dark` themes select native static palettes. Supported color and font variables configure native presentation roles; other theme settings retain diagnostics.
- Accessible titles and descriptions from `accTitle` and `accDescr` become the SVG's accessible name and description.
- Remote fonts are never fetched; native font resolution uses the registered fonts and fallbacks.

The [support matrix](/docs/mermaid-support-matrix/) lists each native model, supported grammar and remaining limitation. Journey retains task scores and actors; Timeline retains categorical periods without inventing dates. C4 preserves real hierarchy, and quantitative Venn fits report their residual limits. Railroad frontends share one native grammar scene, while Agentflow and ZenUML source remains inert diagram data.

<!-- PowerForge markdown source sha256:DF1F359B1326125396A5ADEAB65F7E520C14091B53ADD5602F1C75DB5958D0F3; title=True -->

<!-- PowerForge markdown artifact sha256:01B93B4F5E00EE3C7F7FE05F5E0041A05DEC954C7CD75D8AA7B94E5B786D4F03 -->
