Syncfusion.AspNetMvc.Sankey
35.1.39
Prefix Reserved
dotnet add package Syncfusion.AspNetMvc.Sankey --version 35.1.39
NuGet\Install-Package Syncfusion.AspNetMvc.Sankey -Version 35.1.39
<PackageReference Include="Syncfusion.AspNetMvc.Sankey" Version="35.1.39" />
<PackageVersion Include="Syncfusion.AspNetMvc.Sankey" Version="35.1.39" />
<PackageReference Include="Syncfusion.AspNetMvc.Sankey" />
paket add Syncfusion.AspNetMvc.Sankey --version 35.1.39
#r "nuget: Syncfusion.AspNetMvc.Sankey, 35.1.39"
#:package Syncfusion.AspNetMvc.Sankey@35.1.39
#addin nuget:?package=Syncfusion.AspNetMvc.Sankey&version=35.1.39
#tool nuget:?package=Syncfusion.AspNetMvc.Sankey&version=35.1.39
Syncfusion ASP.NET MVC Sankey component
A flow diagram visualization component that displays flow and proportional relationships between values using node-link diagrams. Commonly used for energy flows, budget allocation, and resource tracking.
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/aspnet-mvc/llms.txt
Key features
- Flow Visualization: Visualizes directional flow of quantities between nodes
- Configurable Node Layout: Supports customization of node width, padding, and alignment
- Flexible Link Coloring: Provides gradient and solid link colorization
- Interactive Tooltips: Interactive tooltip on hover for link and node details
- Legend Support: Includes a built-in legend for identifying node groups
- Custom Labels: Supports custom node and link labels
- Export Capabilities: Export to PNG, JPEG, SVG, and PDF
Common setup
These setup steps are required only once for your application, regardless of which Syncfusion components you use.
1. Install NuGet package
Install-Package Syncfusion.AspNetMvc.Sankey
2. Add namespace reference
Edit Web.config under the Views folder and add the Syncfusion.EJ2 namespace:
<namespaces>
<add namespace="Syncfusion.EJ2"/>
</namespaces>
3. Add stylesheet and script references
In your layout file (~/Views/Shared/_Layout.cshtml), add the following in the <head> section:
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewBag.Title - Syncfusion Application</title>
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/35.1.39/fluent2.css" />
<script src="https://cdn.syncfusion.com/ej2/35.1.39/dist/ej2.min.js"></script>
</head>
4. Register script manager
At the end of the <body> tag in your layout file (~/Views/Shared/_Layout.cshtml):
<body>
@RenderBody()
@Html.EJS().ScriptManager()
</body>
Quick start
Step 1: Add the ASP.NET MVC Sankey control
Add the Syncfusion ASP.NET MVC Sankey control in the ~/Views/Home/Index.cshtml page:
@Html.EJS().Sankey("sankey-container")
.Width("90%")
.Height("420px")
.Title("Sankey Chart")
.Tooltip(tooltip => tooltip.Enable(true))
.LegendSettings(legend => legend.Visible(true))
.Nodes(ViewBag.SankeyNodes)
.Links(ViewBag.SankeyLinks)
.Render()
Step 2: Create controller ~/Controllers/HomeController.cs
public ActionResult Index()
{
List<SankeyNode> nodes = new List<SankeyNode>
{
new SankeyNode { Id = "A" },
new SankeyNode { Id = "B" },
new SankeyNode { Id = "C" }
};
List<SankeyLink> links = new List<SankeyLink>
{
new SankeyLink { SourceId = "A", TargetId = "B", Value = 100 },
new SankeyLink { SourceId = "B", TargetId = "C", Value = 80 }
};
ViewBag.SankeyNodes = nodes;
ViewBag.SankeyLinks = links;
return View();
}
Step 3: Run the application
Press Ctrl+F5 to run the application in your browser.
Documentation
Support
License
This is a commercial product and requires a paid license for possession or use. Review the Syncfusion EULA
About Syncfusion
Syncfusion provides 1800+ 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 Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Newtonsoft.Json (>= 13.0.3)
- Syncfusion.AspNetMvc.Base (>= 35.1.39)
- Syncfusion.AspNetMvc.Charts (>= 35.1.39)
- Syncfusion.EJ2.JavaScript (>= 35.1.39)
- Syncfusion.Licensing (>= 35.1.39)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 35.1.39 | 74 | 10/6/2026 |
| 35.1.37 | 99 | 9/29/2026 |
| 34.2.9 | 114 | 9/21/2026 |
| 34.2.8 | 107 | 9/14/2026 |
| 34.2.7 | 145 | 9/8/2026 |
| 34.2.6 | 115 | 8/31/2026 |
| 34.2.5 | 117 | 8/25/2026 |
| 34.2.4 | 134 | 8/17/2026 |
| 34.2.3 | 121 | 8/11/2026 |
| 34.2.2 | 133 | 8/5/2026 |
| 34.1.33 | 134 | 7/27/2026 |
| 34.1.32 | 137 | 7/21/2026 |
| 34.1.31 | 133 | 7/14/2026 |
| 34.1.30 | 129 | 7/9/2026 |
| 34.1.29 | 161 | 7/6/2026 |