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.

Publishing a documentation page

Sequence diagram

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

Requesting a list of pages through the API

State diagram

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

Page lifecycle

User journey

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

The reader's path to an answer

Structure and data

Class diagram

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

Model of pages and components

Data model

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

Data model of a documentation site

Requirements

requirementDiagram links requirements with what satisfies and verifies them.

Build requirements

Mind map

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

Documentation structure

Treemap

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

Documentation sections by number of pages

Blocks

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

Documentation page layout

Packet

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

TCP packet header

Architecture

System context

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

Documentation system context

Service architecture

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

Documentation site architecture

Plans and history

Gantt chart

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

Release plan

Timeline

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

Docara 3 releases

Git branches

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

Working on a change in Git

Kanban

kanban lays tasks out in status columns.

Documentation task board

Charts and comparison

Pie chart

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

Documentation pages by type

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.

Page weight and the overall budget

Quadrant chart

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

Documentation task priorities

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.

Flow of files through the build

Radar

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

Quality of documentation sections

See also