documentation

Mermaid Kanban, Architecture, Sankey, and XY Chart Examples

Site Owner: Michael Baggett

This page contains six examples each of Kanban, architecture, Sankey, and XY charts.

Kanban diagrams

1. Software board

kanban
  todo[Todo]
    spec[Write specification]
  doing[In progress]
    code[Implement feature]
  done[Done]
    test[Run tests]

2. Content board

kanban
  ideas[Ideas]
    topic[Choose topic]
  draft[Draft]
    article[Write article]
  review[Review]
    proof[Proofread]
  published[Published]
    post[Publish post]

3. Operations board

kanban
  intake[Intake]
    request[Capture request]
  triage[Triage]
    assess[Assess impact]
  active[Active]
    resolve[Resolve issue]
  closed[Closed]
    record[Record outcome]

4. Design board

kanban
  explore[Explore]
    research[Research users]
  shape[Shape]
    sketch[Sketch options]
  build[Build]
    prototype[Create prototype]
  validate[Validate]
    interview[Test concept]

5. Data board

kanban
  source[Source]
    import[Import data]
  clean[Clean]
    normalize[Normalize fields]
  model[Model]
    transform[Transform records]
  report[Report]
    publish[Publish results]

6. Security board

kanban
  backlog[Backlog]
    finding[Review finding]
  investigate[Investigate]
    reproduce[Reproduce issue]
  remediate[Remediate]
    patch[Apply patch]
  verify[Verify]
    scan[Run scan]

Architecture diagrams

1. Web application

architecture-beta
    group web(cloud)[Web]
    service browser(server)[Browser] in web
    service app(server)[Application] in web
    service db(database)[Database] in web
    browser:R --> L:app
    app:R --> L:db

2. Data pipeline

architecture-beta
    group pipeline(cloud)[Pipeline]
    service source(server)[Source] in pipeline
    service worker(server)[Worker] in pipeline
    service warehouse(database)[Warehouse] in pipeline
    source:R --> L:worker
    worker:R --> L:warehouse

3. Delivery platform

architecture-beta
    group delivery(cloud)[Delivery]
    service repo(server)[Repository] in delivery
    service build(server)[Build] in delivery
    service deploy(server)[Deploy] in delivery
    repo:R --> L:build
    build:R --> L:deploy

4. Mobile service

architecture-beta
    group mobile(cloud)[Mobile]
    service phone(server)[Mobile App] in mobile
    service gateway(server)[Gateway] in mobile
    service storage(database)[Storage] in mobile
    phone:R --> L:gateway
    gateway:R --> L:storage

5. Event platform

architecture-beta
    group events(cloud)[Events]
    service producer(server)[Producer] in events
    service broker(server)[Broker] in events
    service consumer(server)[Consumer] in events
    producer:R --> L:broker
    broker:R --> L:consumer

6. Observability

architecture-beta
    group observe(cloud)[Observability]
    service app(server)[Application] in observe
    service metrics(server)[Metrics] in observe
    service dashboard(server)[Dashboard] in observe
    app:R --> L:metrics
    metrics:R --> L:dashboard

Sankey diagrams

1. Energy

sankey
Solar,Grid,80
Wind,Grid,60
Grid,Industry,70
Grid,Homes,50
Grid,Losses,20

2. Website traffic

sankey
Search,Landing,60
Social,Landing,30
Email,Landing,20
Landing,Signup,55
Landing,Bounce,55

3. Budget

sankey
Revenue,Operations,50
Revenue,Research,20
Revenue,Support,15
Revenue,Reserve,15

4. Support flow

sankey
Requests,Self-service,40
Requests,Agent,35
Requests,Escalation,10
Agent,Resolved,30
Agent,Escalation,5

5. Build pipeline

sankey
Commits,Build,100
Build,Tests,90
Build,Failed,10
Tests,Release,80
Tests,Rejected,10

6. Water use

sankey
Supply,Households,50
Supply,Industry,30
Supply,Agriculture,20
Households,Consumed,40
Households,Returned,10

XY charts

1. Monthly revenue

xychart-beta
    title "Monthly revenue"
    x-axis [Jan, Feb, Mar, Apr]
    y-axis "Revenue" 0 --> 100
    bar [35, 48, 62, 80]
    line [35, 48, 62, 80]

2. Response time

xychart-beta
    title "Response time"
    x-axis [Mon, Tue, Wed, Thu, Fri]
    y-axis "Milliseconds" 0 --> 500
    line [420, 380, 310, 260, 220]

3. Weekly work

xychart-beta
    title "Completed tasks"
    x-axis [Week1, Week2, Week3, Week4]
    y-axis "Tasks" 0 --> 40
    bar [12, 18, 27, 35]

4. Temperature

xychart-beta
    title "Daily temperature"
    x-axis [Morning, Noon, Evening]
    y-axis "Degrees" 0 --> 40
    line [18, 31, 24]

5. Conversion

xychart-beta
    title "Conversion rate"
    x-axis [A, B, C, D]
    y-axis "Percent" 0 --> 100
    bar [42, 55, 61, 73]
    line [42, 55, 61, 73]

6. Capacity

xychart-beta
    title "Capacity use"
    x-axis [Q1, Q2, Q3, Q4]
    y-axis "Percent" 0 --> 100
    line [65, 72, 81, 76]

Posted: