Syncfusion.Blazor.Diagram
34.2.6
Prefix Reserved
dotnet add package Syncfusion.Blazor.Diagram --version 34.2.6
NuGet\Install-Package Syncfusion.Blazor.Diagram -Version 34.2.6
<PackageReference Include="Syncfusion.Blazor.Diagram" Version="34.2.6" />
<PackageVersion Include="Syncfusion.Blazor.Diagram" Version="34.2.6" />
<PackageReference Include="Syncfusion.Blazor.Diagram" />
paket add Syncfusion.Blazor.Diagram --version 34.2.6
#r "nuget: Syncfusion.Blazor.Diagram, 34.2.6"
#:package Syncfusion.Blazor.Diagram@34.2.6
#addin nuget:?package=Syncfusion.Blazor.Diagram&version=34.2.6
#tool nuget:?package=Syncfusion.Blazor.Diagram&version=34.2.6
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.

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/agent-setup/prompt.md, 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.razororApp.razorfile. - For Blazor WebAssembly App, add these to
wwwroot/index.htmlfile
<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
- Register the Syncfusion® Blazor service in the
Program.csfile.
using Syncfusion.Blazor;
builder.Services.AddSyncfusionBlazor();
- 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
- Getting Started with Blazor Web App
- Getting Started with WebAssembly
- API Reference
- Live Demos
- Feature Overview
Support
Other Popular Blazor Components
Explore other popular Syncfusion<sup>®</sup> blazor components curated from UI components, standalone SDKs, and document solution suites.
<table> <tr> <td align="center"> <a href="https://www.syncfusion.com/blazor-components/blazor-datagrid">Blazor DataGrid</a> </td> <td align="center"> <a href="https://www.syncfusion.com/blazor-components/blazor-charts">Blazor Charts</a> </td> <td align="center"> <a href="https://www.syncfusion.com/blazor-components/blazor-file-manager">Blazor File Manager</a> </td> <td align="center"> <a href="https://www.syncfusion.com/gantt-sdk/blazor-gantt-chart">Blazor Gantt Chart</a> </td> <td align="center"> <a href="https://www.syncfusion.com/scheduler-sdk/blazor-scheduler">Blazor Scheduler</a> </td> </tr> <tr> <td align="center"> <a href="https://www.syncfusion.com/rich-text-editor-sdk/blazor-rich-text-editor">Blazor Rich Text Editor</a> </td> <td align="center"> <a href="https://www.syncfusion.com/docx-editor-sdk/blazor-docx-editor-sdk">Blazor DOCX Editor</a> </td> <td align="center"> <a href="https://www.syncfusion.com/spreadsheet-editor-sdk/blazor-spreadsheet-editor">Blazor Spreadsheet Editor</a> </td> <td align="center"> <a href="https://www.syncfusion.com/pdf-viewer-sdk/blazor-pdf-viewer">Blazor PDF Viewer</a> </td> <td align="center"> <a href="https://www.syncfusion.com/blazor-components/blazor-map">Blazor Map</a> </td> </tr> </table>
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
Desktop: WinForms | WPF | WinUI
Learn more at www.syncfusion.com.
sales@syncfusion.com | Toll Free: 1-888-9-DOTNET
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Syncfusion.Blazor.Core (>= 34.2.6)
- Syncfusion.Blazor.Data (>= 34.2.6)
- Syncfusion.Blazor.Navigations (>= 34.2.6)
- Syncfusion.Blazor.Popups (>= 34.2.6)
- Syncfusion.Telemetry (>= 34.2.6)
-
net8.0
- Syncfusion.Blazor.Core (>= 34.2.6)
- Syncfusion.Blazor.Data (>= 34.2.6)
- Syncfusion.Blazor.Navigations (>= 34.2.6)
- Syncfusion.Blazor.Popups (>= 34.2.6)
- Syncfusion.Telemetry (>= 34.2.6)
-
net9.0
- Syncfusion.Blazor.Core (>= 34.2.6)
- Syncfusion.Blazor.Data (>= 34.2.6)
- Syncfusion.Blazor.Navigations (>= 34.2.6)
- Syncfusion.Blazor.Popups (>= 34.2.6)
- Syncfusion.Telemetry (>= 34.2.6)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Syncfusion.Blazor.Diagram:
| Package | Downloads |
|---|---|
|
CyberFrameword10_V2
CyberFrameword10_V2 |
|
|
Whipstaff.Blazor.Syncfusion.Diagram
Re-usable logic for working with Syncfusion Blazor Diagram controls. |
|
|
AutoCore.Blazor
Package Description |
|
|
Jakar.Extensions.Blazor.Syncfusion
Extensions to aid in development. |
|
|
Ruth.JYC.ELSA.RazorLib
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 34.2.6 | 760 | 8/31/2026 |
| 34.2.5 | 693 | 8/25/2026 |
| 34.2.4 | 2,590 | 8/17/2026 |
| 34.2.3 | 1,443 | 8/11/2026 |
| 34.2.2 | 2,304 | 8/5/2026 |
| 34.1.33 | 4,513 | 7/27/2026 |
| 34.1.32 | 1,933 | 7/21/2026 |
| 34.1.31 | 3,491 | 7/14/2026 |
| 34.1.30 | 713 | 7/9/2026 |
| 34.1.29 | 1,935 | 7/6/2026 |
| 33.2.15 | 3,986 | 6/23/2026 |
| 33.2.13 | 2,835 | 6/16/2026 |
| 33.2.12 | 3,170 | 6/9/2026 |
| 33.2.10 | 1,323 | 6/2/2026 |
| 33.2.8 | 2,023 | 5/26/2026 |
| 33.2.7 | 1,870 | 5/19/2026 |
| 33.2.6 | 2,491 | 5/12/2026 |
| 33.2.5 | 10,624 | 5/4/2026 |
| 33.2.4 | 2,249 | 4/27/2026 |
| 33.2.3 | 4,654 | 4/21/2026 |