Skip to main content
Glama

MCP ECharts

generate_sankey_chart

Visualize data flows between stages or categories with a Sankey chart. Ideal for depicting user journeys, resource movement, or process transitions. Customize chart dimensions, node alignment, and themes for clear insights.

Instructions

Generate a sankey chart to visualize the flow of data between different stages or categories, such as, the user journey from landing on a page to completing a purchase.

Input Schema

NameRequiredDescriptionDefault
dataYesData for sankey chart, such as, [{ source: 'Landing Page', target: 'Product Page', value: 50000 }, { source: 'Product Page', target: 'Add to Cart', value: 35000 }].
heightNoSet the height of the chart, default is 600px.
nodeAlignNoAlignment of nodes in the sankey chart, such as, 'left', 'right', or 'justify'.justify
themeNoSet the theme for the chart, optional, default is 'default'.default
titleNoSet the title of the chart.
widthNoSet the width of the chart, default is 800px.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "data": { "description": "Data for sankey chart, such as, [{ source: 'Landing Page', target: 'Product Page', value: 50000 }, { source: 'Product Page', target: 'Add to Cart', value: 35000 }].", "items": { "additionalProperties": false, "properties": { "source": { "description": "Source node name, such as 'Landing Page'.", "type": "string" }, "target": { "description": "Target node name, such as 'Product Page'.", "type": "string" }, "value": { "description": "Flow value between source and target, such as 50000.", "type": "number" } }, "required": [ "source", "target", "value" ], "type": "object" }, "minItems": 1, "type": "array" }, "height": { "default": 600, "description": "Set the height of the chart, default is 600px.", "exclusiveMinimum": 0, "type": "integer" }, "nodeAlign": { "default": "justify", "description": "Alignment of nodes in the sankey chart, such as, 'left', 'right', or 'justify'.", "enum": [ "left", "right", "justify" ], "type": "string" }, "theme": { "default": "default", "description": "Set the theme for the chart, optional, default is 'default'.", "enum": [ "default", "dark" ], "type": "string" }, "title": { "description": "Set the title of the chart.", "type": "string" }, "width": { "default": 800, "description": "Set the width of the chart, default is 800px.", "exclusiveMinimum": 0, "type": "integer" } }, "required": [ "data" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hustcc/mcp-echarts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server