Skip to content
DIAGRAM · COMPLETE

Diagram

Draw flow charts and organization charts that lay themselves out.

Draw flow charts and organization charts as SVG. Boxes are placed in levels automatically from their connections, or at the positions you give.

Why it helps

  • Automatic layout
  • Flow and org charts
  • Positions automatic or manual

Where it fits

  • Processes
  • Organization charts
  • Workflows

Example

<Diagram Label="Company structure" Direction="DiagramDirection.TopDown" NodeWidth="150" Nodes="_nodes" Edges="_edges" />

@code {
    private readonly DiagramNode[] _nodes =
    [
        new("ceo", "Chief Executive Officer", Accent: 0),
        new("cto", "Technology", Accent: 1),
        new("cfo", "Finance", Accent: 2),
        new("coo", "Operations", Accent: 3),
        new("dev", "Development"),
        new("qa", "Quality"),
        new("acc", "Accounting"),
        new("log", "Logistics"),
        new("sup", "Support")
    ];

    private readonly DiagramEdge[] _edges =
    [
        new("ceo", "cto"), new("ceo", "cfo"), new("ceo", "coo"),
        new("cto", "dev"), new("cto", "qa"),
        new("cfo", "acc"),
        new("coo", "log"), new("coo", "sup")
    ];
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Part of RayCraft Complete.

All controls ยท Documentation