Skip to content
Navigation

Primary

Diagram gallery

This page collects all the Mermaid diagram types that the Mermaid 11.16 bundled with Docara draws. Each type has a short note on when you need it, a live diagram and its source on the “Markdown” tab — you can copy it into your own page and change the labels.

How to add a diagram, what parameters it has and which labels can cause trouble is described on the Diagram page.

Processes and behaviour

Flowchart

flowchart shows the steps and branches of a process: what follows what and where each decision leads.

Diagram
Publishing a documentation page
Diagram

Sequence diagram

sequenceDiagram shows who sends requests and responses to whom and in what order — handy for describing an API.

Diagram
Requesting a list of pages through the API
Diagram

State diagram

stateDiagram-v2 shows the states an object can be in and what moves it from one to another.

Diagram
Page lifecycle
Diagram

User journey

journey shows a person’s steps and how they feel at each step, as a score from 1 to 5.

Diagram
The reader's path to an answer
Diagram

Structure and data

Class diagram

classDiagram shows code objects, their fields, methods and the relations between them.

Diagram
Model of pages and components
Diagram

Data model

erDiagram shows entities, their fields and how many records of one entity relate to another.

Diagram
Data model of a documentation site
Diagram

Requirements

requirementDiagram links requirements with what satisfies and verifies them.

Diagram
Build requirements
Diagram

Mind map

mindmap spreads a topic into branches from the centre — suits the structure of a section or a documentation plan.

Diagram
Documentation structure
Diagram

Treemap

treemap-beta shows the shares of nested parts as rectangles: the bigger the part, the bigger its area.

Diagram
Documentation sections by number of pages
Diagram

Blocks

block-beta lays blocks out on a grid when their relative position matters, not the flow.

Diagram
Documentation page layout
Diagram

Packet

packet-beta shows which fields and bits a packet or a binary record consists of.

Diagram
TCP packet header
Diagram

Architecture

System context

C4Context shows a system, its users and external systems — the first level of the C4 model.

Diagram
Documentation system context
Diagram

Service architecture

architecture-beta draws services and groups with cloud, server, disk and database icons. Put labels in non-Latin scripts in double quotes.

Diagram
Documentation site architecture
Diagram

Plans and history

Gantt chart

gantt shows tasks on a calendar: deadlines, dependencies and milestones.

Diagram
Release plan
Diagram

Timeline

timeline lists events in order — handy for a release history.

Diagram
Docara 3 releases
Diagram

Git branches

gitGraph shows branches, commits and merges — for example, the order of work on a change.

Diagram
Working on a change in Git
Diagram

Kanban

kanban lays tasks out in status columns.

Diagram
Documentation task board
Diagram

Charts and comparison

Pie chart

pie shows the shares of a whole — when there are few parts and the proportion matters.

Diagram
Documentation pages by type
Diagram

Chart

xychart-beta draws bars and lines on axes — for example, the weight of this site’s pages next to the overall budget of 4.5 MB.

Diagram
Page weight and the overall budget
Diagram

Quadrant chart

quadrantChart sorts items into four groups on two axes — handy for priorities.

Diagram
Documentation task priorities
Diagram

Flow

sankey-beta shows how a volume flows between stages: the width of a band equals the amount. Write labels in Latin script — with non-Latin labels (checked with Cyrillic) the diagram is not drawn.

Diagram
Flow of files through the build
Diagram

Radar

radar-beta compares several options on a shared set of scores.

Diagram
Quality of documentation sections
Diagram

See also