Angular Sankey Diagram – Elegant and Interactive Visualization
- Visualize and examine complex flow relationships using interconnected nodes and links.
- Engage with the Sankey Diagram through interactive features such as tooltips, legends, and more.
- Deliver clear and seamless data visualization with support for both vertical and horizontal layouts.
Trusted by the world’s leading companies
Overview
The Angular Sankey Diagram is a flow-based visualization that represents quantities proportionally, emphasizing the transfer or movement between different stages of a process. It is an ideal solution for illustrating complex systems, energy distributions, or any workflow involving transitions between steps.
Why choose the Syncfusion Angular Sankey Diagram?
Interactive Sankey Diagram
With an interactive tooltip cursor, users can explore the Sankey Diagram and view detailed information about individual nodes and connecting links.
Comprehensive feature set
The Angular Sankey Diagram includes support for legends, multiple orientations, labels, titles, themes, events, customizable nodes and links, along with printing and exporting capabilities.
Responsive across all devices
The Sankey Diagram offers a fully responsive layout with an optimized design for desktops, tablets, and mobile devices. It performs seamlessly on iOS, Android, and Windows-based platforms.
Visually appealing, customizable themes
Choose from modern, built-in themes such as Material 3, Fluent 2, Tailwind CSS, Bootstrap, Material, and Fabric to match your application’s design language.
Smooth and elegant animation
The Sankey Diagram features fluid animations that enhance data presentation with smooth and visually appealing transitions.
Angular Sankey Diagram code example
Get started quickly with the Angular Sankey Diagram using just a few lines of HTML and TS code. You can also explore our Angular Sankey example to see how the component can be rendered and customized.
<ejs-sankey
id="sankey"
title="Device Usage"
[nodeStyle]="nodeStyle"
[linkStyle]="linkStyle"
[legendSettings]="legendSettings">
<e-sankey-nodes>
<e-sankey-node id="Female" :label="{ text: 'Female (58%)' }" />
<e-sankey-node id="Male" :label="{ text: 'Male (42%)' }" />
<e-sankey-node id="Tablet" :label="{ text: 'Tablet (12%)' }" />
<e-sankey-node id="Mobile" :label="{ text: 'Mobile (40%)' }" />
<e-sankey-node id="Desktop" :label="{ text: 'Desktop (48%)' }" />
<e-sankey-node id="< 18" :label="{ text: '< 18 years (8%)' }" />
<e-sankey-node id="18-26" :label="{ text: '18-26 years (35%)' }" />
<e-sankey-node id="27-40" :label="{ text: '27-40 years (38%)' }" />
<e-sankey-node id="> 40" :label="{ text: '> 40 years (19%)' }" />
</e-sankey-nodes>
<e-sankey-links>
<e-sankey-link source-id="Female" target-id="Tablet" :value="12" />
<e-sankey-link source-id="Female" target-id="Mobile" :value="14" />
<e-sankey-link source-id="Female" target-id="Desktop" :value="32" />
<e-sankey-link source-id="Male" target-id="Mobile" :value="26" />
<e-sankey-link source-id="Male" target-id="Desktop" :value="16" />
<e-sankey-link source-id="Tablet" target-id="< 18" :value="4" />
<e-sankey-link source-id="Tablet" target-id="> 40" :value="8" />
<e-sankey-link source-id="Mobile" target-id="< 18" :value="4" />
<e-sankey-link source-id="Mobile" target-id="18-26" :value="24" />
<e-sankey-link source-id="Mobile" target-id="27-40" :value="10" />
<e-sankey-link source-id="Mobile" target-id="> 40" :value="2" />
<e-sankey-link source-id="Desktop" target-id="18-26" :value="11" />
<e-sankey-link source-id="Desktop" target-id="27-40" :value="28" />
<e-sankey-link source-id="Desktop" target-id="> 40" :value="9" />
</e-sankey-links>
</ejs-sankey>//app.component.ts
import { Component } from '@angular/core';
export class AppComponent {
public legendSettings: Object = {
visible: true,
position: 'Bottom'
};
public linkStyle: Object = {
colorType: 'Source'
};
public nodeStyle: Object = {
width: 30,
padding: 10
};
}
//app.module.ts
import { SankeyAllModule } from '@syncfusion/ej2-ng-charts';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
SankeyAllModule
],
bootstrap: [AppComponent]
})
export class AppModule { }
Legend
The Angular Sankey Diagram supports fully customizable legends that provide additional context for nodes. When hovering over a legend item, the associated data flow links are automatically highlighted.
Tooltips
The Sankey Diagram includes tooltip support to display detailed information about node and link values when users hover over them.


Print and export
Export the Angular Sankey Diagram as PDF files or image formats such as PNG and JPEG directly on the client side. The diagram can also be printed straight from the browser.
Orientation
The Sankey Diagram supports both horizontal and vertical orientations, offering flexibility to visualize data according to layout preferences and flow direction.


Node labels
Node labels can be enabled to display descriptive information, improving readability and making the visualization easier to understand.
Customization
Built-in APIs allow customization of node widths, colors, link styles, and labels, enabling the Sankey Diagram to align perfectly with your design requirements.

Accessibility

Keyboard navigation
All elements in the Sankey Diagram are fully accessible via keyboard navigation. Key features such as legend highlighting can be operated without a mouse, ensuring an inclusive user experience.

Screen readers
The Sankey Diagram provides complete WAI-ARIA compliance, making it compatible with screen readers and other assistive technologies. High-contrast visuals and meaningful UI descriptions enhance usability for users with low vision.

Right-to-left (RTL) support
RTL rendering enables the Sankey Diagram to display text and layout from right to left, improving accessibility and usability for languages that follow RTL reading patterns.
Not sure how to create your first Angular Sankey Diagram component? Our documentation can help.
I’d love to read it now145+ ANGULAR UI COMPONENTS
Frequently Asked Questions
Why should you choose the Syncfusion® Angular Sankey Diagram component?
With the Syncfusion Angular Sankey Diagram component, you can:
- Visualize and analyze complex flow systems with nodes and links.
- Implement one of the best Angular Sankey Diagram components on the market.
- Enjoy simple configuration and APIs.
- Deploy confidently to all modern browsers.
- Implement a touch-friendly and responsive component.
- Take advantage of expansive learning resources such as demos and documentation to get started quickly.
Where can I find the Syncfusion Angular Sankey Diagram demo?
You can find our Angular Sankey demo here, which demonstrates how to render and configure the Sankey Diagram.
Can I download and utilize the Syncfusion Angular Sankey Diagram component for free?
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
How do I get started with Syncfusion Angular Sankey?
A good place to start would be our comprehensive getting started documentation.
Our Customers Love Us
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.