Syncfusion.AspNetCore.Sankey 34.1.31

Prefix Reserved
dotnet add package Syncfusion.AspNetCore.Sankey --version 34.1.31
                    
NuGet\Install-Package Syncfusion.AspNetCore.Sankey -Version 34.1.31
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Syncfusion.AspNetCore.Sankey" Version="34.1.31" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Syncfusion.AspNetCore.Sankey" Version="34.1.31" />
                    
Directory.Packages.props
<PackageReference Include="Syncfusion.AspNetCore.Sankey" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Syncfusion.AspNetCore.Sankey --version 34.1.31
                    
#r "nuget: Syncfusion.AspNetCore.Sankey, 34.1.31"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Syncfusion.AspNetCore.Sankey@34.1.31
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Syncfusion.AspNetCore.Sankey&version=34.1.31
                    
Install as a Cake Addin
#tool nuget:?package=Syncfusion.AspNetCore.Sankey&version=34.1.31
                    
Install as a Cake Tool

Syncfusion® ASP.NET Core 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.

Key Features

  • Visualizes directional flow of quantities between nodes
  • Configurable node width, padding, and alignment
  • Gradient and solid link colorization
  • Interactive tooltip on hover for link and node details
  • Legend for identifying node groups
  • Supports custom node and link labels
  • Export to PNG, JPEG, SVG, and PDF

Common Setup

All Syncfusion ASP.NET Core controls share the same foundational setup steps:

1. Install NuGet Package

Install-Package Syncfusion.AspNetCore.Sankey

2. Register Tag Helper

Add the following to ~/Pages/_ViewImports.cshtml or ~/Views/_ViewImports.cshtml:

@addTagHelper *, Syncfusion.AspNetCore.Sankey

3. Add Stylesheet & Script References

In your layout file (~/Pages/Shared/_Layout.cshtml):

<head>
    
    <link rel="stylesheet" href="_content/Syncfusion.AspNetCore.Themes/styles/fluent2.css" />
    
    
    <script src="_content/Syncfusion.AspNetCore.Sankey/scripts/sf-sankey.min.js"></script>
</head>

4. Register Script Manager

In your layout file (~/Pages/Shared/_Layout.cshtml), At the end of your <body> tag:

<ejs-scripts></ejs-scripts>

Quick Start

Step 1: Create a Model

using System.Collections.Generic;

public class SankeyNode
{
    public string Label { get; set; }
}

public class SankeyLink
{
    public int From { get; set; }
    public int To { get; set; }
    public int Value { get; set; }
}

Step 2: Create a PageModel

Create ~/Pages/Index.cshtml.cs:

using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Collections.Generic;

public class IndexModel : PageModel
{
    public List<SankeyNode> Nodes { get; set; } = new List<SankeyNode>
    {
        new SankeyNode { Label = "Input" },
        new SankeyNode { Label = "Process" },
        new SankeyNode { Label = "Output" }
    };

    public List<SankeyLink> Links { get; set; } = new List<SankeyLink>
    {
        new SankeyLink { From = 0, To = 1, Value = 100 },
        new SankeyLink { From = 1, To = 2, Value = 100 }
    };

    public void OnGet()
    {
        // Load sankey data
    }
}

Step 3: Create the View

Create ~/Pages/Index.cshtml:

@page
@model IndexModel

<div class="container-fluid mt-5">
    <h2>Sankey Diagram Demo</h2>

    <ejs-sankey id="sankey" width="100%" height="400px" nodePadding="50">
    </ejs-sankey>
</div>

Step 4: 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 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

sales@syncfusion.com | Toll Free: 1-888-9-DOTNET

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
34.1.31 41 7/14/2026
34.1.30 92 7/9/2026
34.1.29 133 7/6/2026