generate_sankey_chart
Visualize flow relationships in complex networks using Sankey diagrams. Input source, target, and value data to display distribution and flow paths, customizable in width, height, theme, and output format.
Instructions
Generate a Sankey diagram to visualize the flow relationships between nodes in complex networks, suitable for displaying the distribution and flow paths of source and target data.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
background | No | Chart background color (hex). Optional, defaults to white. | |
chartTheme | No | Chart theme. Optional, defaults to 'light'. | |
colors | No | Color palette for chart elements. | |
dataTable | Yes | Data for the Sankey diagram, e.g., [{ category: 'category 01', value: 10 }]. | |
height | No | Chart height. Optional, defaults to 500. | |
output | No | Chart output type. Defaults to 'image'. | image |
sourceField | Yes | The source field in the Sankey diagram; must exist in the data. | |
subTitle | No | Chart subtitle text. | |
targetField | Yes | The target field in the Sankey diagram; must exist in the data. | |
title | No | Chart title text. | |
titleOrient | No | Title position in the chart. | |
valueField | Yes | Measure field. Must be numeric and exist in the data. | |
width | No | Chart width. Optional, defaults to 500. |