Categories

Sankey Diagram Generator

Generate Sankey diagrams to visualize flow distributions and energy transfers between different nodes

Data for the Sankey diagram in JSON format with nodes and links arrays

Title that will be displayed above the chart

Colors for nodes (comma-separated hex colors)

Colors for flow links (comma-separated hex colors)

Width of the chart in pixels

Height of the chart in pixels

Width of each node in pixels

Vertical spacing between nodes in pixels

Background color for the chart container

Display flow values on the diagram

Display node names on the diagram

Animate the diagram when it loads

API Documentation

Request Endpoint

POST /en/api/tools/sankey-diagram-generator

Request Parameters

Parameter Name Type Required Description
chartData textarea Yes Data for the Sankey diagram in JSON format with nodes and links arrays
chartTitle text No Title that will be displayed above the chart
nodeColors text No Colors for nodes (comma-separated hex colors)
linkColors text No Colors for flow links (comma-separated hex colors)
chartWidth number No Width of the chart in pixels
chartHeight number No Height of the chart in pixels
nodeWidth number No Width of each node in pixels
nodePadding number No Vertical spacing between nodes in pixels
backgroundColor color No Background color for the chart container
showValues checkbox No Display flow values on the diagram
showLabels checkbox No Display node names on the diagram
animated checkbox No Animate the diagram when it loads

Response Format

{
  "result": "
Processed HTML content
", "error": "Error message (optional)", "message": "Notification message (optional)", "metadata": { "key": "value" } }
HTML: HTML

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-sankey-diagram-generator": {
      "name": "sankey-diagram-generator",
      "description": "Generate Sankey diagrams to visualize flow distributions and energy transfers between different nodes",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=sankey-diagram-generator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]