Skip to main content
net8.0net9.0net10.0

Syncfusion® Blazor Diagram component for building interactive diagrams and flowcharts in .NET Blazor applications. Supports nodes, connectors, symbol palette, drag-and-drop, layout algorithms, serialization, and export.

Published
Sep 29, 2026
20d ago
Total Downloads
683.5K
683,518

Install

dotnet add package Syncfusion.Blazor.Diagram --version 35.1.37
ProductVersions
.NET
net10.0net8.0net9.0

README

Syncfusion Blazor Diagram

Fast and powerful diagram visualization and creation library for Blazor applications. Create flowcharts, organizational charts, mind maps, UML diagrams, and more with interactive canvas and extensive customization.

Blazor Diagram

Using this package with an AI coding agent

Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:

Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com, then report the detected platform, installed skill pack, MCP status, and any required licensing action.

The setup detects your project's platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.

Platform reference: https://ai.syncfusion.com/blazor/llms.txt

Key features

  • Diagram Types: Flowcharts, organizational charts, mind maps, UML diagrams, network diagrams
  • Rich Shapes: Built-in and custom shapes with templates
  • Connectors: Multiple connector types (straight, orthogonal, bezier) with customizable endpoints
  • Editing: Drag, resize, rotate, and delete objects seamlessly
  • Layout Algorithms: Automatic arrangement (hierarchical, radial, organizational)
  • Serialization: Save and load diagrams in JSON format
  • Export: Export diagrams as image (PNG, SVG, PDF)
  • Interactive Features: Zoom, pan, selection, undo/redo, properties panel
  • Mobile Support: Touch-friendly interactions and responsive design

System Requirements

  • .NET 8.0 or later (Blazor Server, Blazor Web App, Blazor WebAssembly, Blazor Hybrid)
  • See full requirements: System Requirements

Installation

Install the Diagram package and the themes package, which provides the stylesheets referenced below:

dotnet add package Syncfusion.Blazor.Diagram
dotnet add package Syncfusion.Blazor.Themes

Add stylesheet and script references

  • For Blazor Web App / Blazor Server App, add these to Components/App.razor or App.razor file.
  • For Blazor WebAssembly App, add these to wwwroot/index.html file
<link href="_content/Syncfusion.Blazor.Themes/fluent2.css" rel="stylesheet" />
<script src="_content/Syncfusion.Blazor.Diagram/scripts/sf-diagramcomponent.min.js" type="text/javascript"></script>

Quick start

  1. Register the Syncfusion Blazor service in the Program.cs file.
using Syncfusion.Blazor;

builder.Services.AddSyncfusionBlazor();
  1. Add Blazor Diagram component to your Razor page.
@using Syncfusion.Blazor.Diagram

<SfDiagramComponent Height="600px" Nodes="@NodeCollection" Connectors="@ConnectorCollection">
</SfDiagramComponent>

@code {
    
    public DiagramObjectCollection<Node> NodeCollection = new DiagramObjectCollection<Node>();

    public DiagramObjectCollection<Connector> ConnectorCollection = new DiagramObjectCollection<Connector>();

    protected override void OnInitialized()
    {
        // Create nodes
        Node node1 = new Node() { Id = "node1", OffsetX = 250, OffsetY = 50, Width = 100, Height = 100, Shape = new FlowShape() { Type = FlowShapeType.Process }, Annotations = new DiagramObjectCollection<ShapeAnnotation>() { new ShapeAnnotation { Content = "Start" } } };
        Node node2 = new Node() { Id = "node2", OffsetX = 250, OffsetY = 250, Width = 100, Height = 100, Shape = new FlowShape() { Type = FlowShapeType.Decision }, Annotations = new DiagramObjectCollection<ShapeAnnotation>() { new ShapeAnnotation { Content = "Decision" } } };

        NodeCollection.Add(node1);
        NodeCollection.Add(node2);

        // Create connector
        Connector connector = new Connector() { SourceID = "node1", TargetID = "node2", Type = ConnectorSegmentType.Orthogonal };
        ConnectorCollection.Add(connector);
    }
}

Documentation

Support

Other Popular Blazor Components

Explore other popular Syncfusion® blazor components curated from UI components, standalone SDKs, and document solution suites.

        Blazor DataGrid
    
    
        Blazor Charts
    
    
        Blazor File Manager
    
    
        Blazor Gantt Chart
    
    
        Blazor Scheduler
    


    
        Blazor Rich Text Editor
    
    
        Blazor DOCX Editor
    
    
        Blazor Spreadsheet Editor
    
    
        Blazor PDF Viewer
    
    
        Blazor Map
    

License

This is a commercial product and requires a paid license for possession or use. Review the Syncfusion EULA.

About Syncfusion

Syncfusion provides 1600+ UI components and frameworks for web, mobile, and desktop development across multiple platforms:

Web: Blazor | ASP.NET Core | ASP.NET MVC | JavaScript | Angular | React | Vue

Mobile: Flutter | MAUI | UWP

Desktop: WinForms | WPF | WinUI

Learn more at www.syncfusion.com.

[email protected] | Toll Free: 1-888-9-DOTNET

Changes from Previous Version

No structural changes between v34.2.9 and v35.1.37.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.The published metadata declares 15 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.