Vue Sankey Diagram – Elegant and Interactive Visualization
- Visualize and explore complex flow systems using connected nodes and links.
- Interact with the Sankey Diagram through features such as tooltips, legends, and more.
- Enjoy smooth data visualization with support for both vertical and horizontal orientations.
Trusted by the world’s leading companies
Overview
The Vue Sankey Diagram is a flow based visualization that represents values proportionally, emphasizing the movement or transfer between different stages of a process. It is a reliable solution for illustrating complex systems, energy distributions, or any workflow involving transfers between stages.
Why choose the Syncfusion Vue Sankey Diagram?
Interactive Sankey Diagram
The tooltip cursor enables users to interact with the Sankey Diagram and access detailed information about nodes and links.
Rich feature set
The Vue Sankey Diagram supports legends, orientations, labels, titles, themes, events, customizable nodes and links, as well as printing and exporting capabilities.
Adapts to any resolution
The Sankey Diagram features a highly responsive layout with an optimized design for desktops, touchscreens, and mobile devices. It works seamlessly across iOS, Android, and Windows platforms.
Attractive, customizable themes
Offers modern and visually appealing designs with multiple built in themes, including Material 3, Fluent 2, Tailwind CSS, Bootstrap, Material, and Fabric.
Elegant animation
The Sankey Diagram delivers smooth animations to present data with fluid transitions.
Vue Sankey Diagram code example
Get started quickly with the Vue Sankey Diagram using just a few lines of Vue code, as shown below. You can also explore our Vue Sankey Diagram example to learn how to render and configure the component.
<template>
<div id="app">
<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>
</div>
</template>
<script>
import Vue from 'vue';
import {
SankeyPlugin,
SankeyComponent,
SankeyNodesCollectionDirective,
SankeyNodeDirective,
SankeyLinksCollectionDirective,
SankeyLinkDirective,
SankeyLegend
} from '@syncfusion/ej2-vue-charts';
Vue.use(SankeyPlugin);
export default {
components: {
'ejs-sankey': SankeyComponent,
'e-sankey-nodes': SankeyNodesCollectionDirective,
'e-sankey-node': SankeyNodeDirective,
'e-sankey-links': SankeyLinksCollectionDirective,
'e-sankey-link': SankeyLinkDirective
},
provide: {
sankey: [SankeyLegend]
},
data() {
return {
nodeStyle: { width: 30, padding: 10 },
linkStyle: { colorType: 'Source' },
legendSettings: { visible: true, position: 'Bottom' }
};
}
};
</script>
Legend
The Vue Sankey Diagram offers configurable legends that give extra context about nodes. When you hover over a legend item, the related data flow links are visually emphasized.
Tooltips
The Sankey Diagram provides tooltip support to display details about node and link values when the pointer moves over them.


Print and export
You can export the Vue Sankey Diagram on the client side as a PDF or image formats like PNG and JPEG. The diagram can also be printed directly from the browser.
Orientation
The Sankey Diagram supports both horizontal and vertical orientations, allowing adaptable visualization based on data structure and flow needs.


Node labels
The Sankey Diagram includes label support for nodes, helping to annotate details and enhance clarity and readability.
Customization
The Sankey Diagram includes built-in APIs for customizing node width and adjusting the colors of nodes, links, and labels, enabling alignment with your design requirements.

Accessibility

Keyboard navigation
All elements in the Sankey Diagram are fully accessible via keyboard, with key features such as legend highlighting operable using keyboard commands alone. No mouse interaction is required, ensuring an inclusive user experience.

Screen readers
The Sankey Diagram offers complete WAI ARIA accessibility support, ensuring compatibility with assistive technologies such as screen readers. Its interface includes high contrast visual elements for users with low vision, and valid UI descriptions are easily accessible to further enhance usability.

Right to left (RTL)
Right to left rendering displays the Sankey Diagram’s text and layout from right to left, improving usability and accessibility for users who work with RTL languages.
Not sure how to create your first Vue Sankey Diagram component? Our documentation can help.
I’d love to read it now145+ VUE UI COMPONENTS
Frequently Asked Questions
Why should you choose the Syncfusion® Vue Sankey Diagram component?
With the Syncfusion Vue Sankey Diagram component, you can:
- Visualize and analyze complex flow systems with nodes and links.
- Implement one of the best Vue 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 Vue Sankey Diagram demo?
You can find our Vue Sankey Diagram demo here, which demonstrates how to render and configure the component.
Can I download and utilize the Syncfusion Vue 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 Vue Sankey Diagram?
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.