create_sankey_diagram
Generate a Sankey (alluvial) diagram to visualize flow magnitudes between source and target categories. Ideal for budget, energy, or migration flow analysis.
Instructions
Sankey (alluvial) diagram showing flow between categories.
Ideal for: budget flow (revenue→ministry→spending), energy distribution, migration flows, supply chains.
Returns: {filepath, title, flows}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts with source, target, and flow value | |
| theme | No | Visual theme | dark |
| title | No | Chart title | |
| filename | No | Output filename | sankey |
| value_column | Yes | Flow magnitude | |
| source_column | Yes | Source/origin category | |
| target_column | Yes | Target/destination category |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||