Key Facts
- Category
- Data Visualization
- Input Types
- textarea, text, number, color, checkbox
- Output Type
- html
- Sample Coverage
- 4
- API Ready
- Yes
Overview
The Sankey Diagram Generator allows you to create professional flow-based visualizations by mapping nodes and links, making it easy to track energy transfers, resource distributions, or complex network flows.
When to Use
- •When you need to visualize the distribution of resources or energy across different stages.
- •When analyzing complex system flows where the volume of movement between nodes is critical.
- •When you want to present data-driven insights through clear, animated, and interactive flow diagrams.
How It Works
- •Input your data in JSON format, defining your nodes and the links that connect them with specific values.
- •Customize the visual appearance by adjusting node colors, link colors, and chart dimensions.
- •Toggle display options like labels, values, and animations to refine the presentation.
- •Generate the diagram to visualize your data as a clean, professional HTML output.
Use Cases
Examples
1. Energy Consumption Analysis
Sustainability Analyst- Background
- An analyst needs to report how electricity is distributed from the main grid to various building systems.
- Problem
- Traditional bar charts fail to show the relationship between the source and the final consumption points.
- How to Use
- Input the energy source nodes and consumption nodes into the JSON data field, then enable 'Show Values' to display the kilowatt-hours.
- Example Config
-
{"nodes": [{"id": "grid", "name": "Main Grid", "value": 500}, {"id": "hvac", "name": "HVAC", "value": 300}, {"id": "lighting", "name": "Lighting", "value": 200}], "links": [{"source": "grid", "target": "hvac", "value": 300}, {"source": "grid", "target": "lighting", "value": 200}]} - Outcome
- A clear flow diagram showing the total energy input and its proportional split between HVAC and lighting systems.
Try with Samples
jsonRelated Hubs
FAQ
What data format does the generator require?
The tool requires a JSON object containing two arrays: 'nodes' (with id, name, and value) and 'links' (with source, target, and value).
Can I customize the colors of the diagram?
Yes, you can provide comma-separated hex color codes for both nodes and links to match your brand or data categories.
What is the purpose of the 'Node Padding' setting?
Node padding controls the vertical spacing between nodes, allowing you to adjust the density and readability of the diagram.
Is the diagram interactive?
The generated diagram supports optional animations on load and can display labels and flow values directly on the links.
What are the limits for the chart dimensions?
The chart width can be set between 600 and 1200 pixels, and the height can be set between 400 and 800 pixels.