Files
mermaid/docs/config/layouts.md
darshanr0107 869709a75f docs: updated tidy-tree docs
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
2025-08-28 19:36:31 +05:30

883 B

Warning

THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.

Please edit the corresponding file in /packages/mermaid/src/docs/config/layouts.md.

Layouts

This page lists the available layout algorithms supported in Mermaid diagrams.

Supported Layouts

How to Use

You can specify the layout in your diagram's YAML config or initialization options. For example:

%%{init: { 'layout': 'elk' }}%%
graph TD;
  A-->B;
  B-->C;
%%{init: { 'layout': 'elk' }}%%
graph TD;
  A-->B;
  B-->C;