Data Visualization
Sankey Diagram Generator
Generate Sankey diagrams to visualize flow distributions and energy transfers between different nodes
html· HTML resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/sankey-diagram-generator' \
-H 'Content-Type: application/json' \
-d '{"chartData":"Simple example (2 nodes):\n{\n "nodes": [{"id": "source", "name": "Source", "value": 100}, {"id": "target", "name": "Target", "value": 100}],\n "links": [{"source": "source", "target": "target", "value": 100}]\n}\n\nOr 3 nodes:\n{\n "nodes": [{"id": "input", "name": "Input", "value": 100}, {"id": "process", "name": "Process", "value": 75}, {"id": "output", "name": "Output", "value": 75}],\n "links": [{"source": "input", "target": "process", "value": 75}, {"source": "process", "target": "output", "value": 75}]\n}","chartTitle":"Enter chart title...","nodeColors":"#1e40af,#dc2626,#16a34a,#ca8a04,#7c3aed,#0891b2","linkColors":"#3b82f6,#ef4444,#22c55e,#eab308,#a855f7,#06b6d4","chartWidth":"800","chartHeight":"500","nodeWidth":"30","nodePadding":"30","backgroundColor":"#ffffff","showValues":true,"showLabels":true,"animated":true}'