Skip to main content
Glama

vchart-mcp-server

by VisActor
MIT License
3
39
  • Apple

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

NameRequiredDescriptionDefault
backgroundNoChart background color (hex). Optional, defaults to white.
chartThemeNoChart theme. Optional, defaults to 'light'.
colorsNoColor palette for chart elements.
dataTableYesData for the Sankey diagram, e.g., [{ category: 'category 01', value: 10 }].
heightNoChart height. Optional, defaults to 500.
outputNoChart output type. Defaults to 'image'.image
sourceFieldYesThe source field in the Sankey diagram; must exist in the data.
subTitleNoChart subtitle text.
targetFieldYesThe target field in the Sankey diagram; must exist in the data.
titleNoChart title text.
titleOrientNoTitle position in the chart.
valueFieldYesMeasure field. Must be numeric and exist in the data.
widthNoChart width. Optional, defaults to 500.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "background": { "description": "Chart background color (hex). Optional, defaults to white.", "type": "string" }, "chartTheme": { "description": "Chart theme. Optional, defaults to 'light'.", "enum": [ "light", "dark" ], "type": "string" }, "colors": { "anyOf": [ { "items": { "description": "Color value", "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "Color palette for chart elements." }, "dataTable": { "description": "Data for the Sankey diagram, e.g., [{ category: 'category 01', value: 10 }].", "minItems": 1, "type": "array" }, "height": { "description": "Chart height. Optional, defaults to 500.", "type": "number" }, "output": { "default": "image", "description": "Chart output type. Defaults to 'image'.", "enum": [ "spec", "image", "html" ], "type": "string" }, "sourceField": { "description": "The source field in the Sankey diagram; must exist in the data.", "minLength": 1, "type": "string" }, "subTitle": { "description": "Chart subtitle text.", "type": "string" }, "targetField": { "description": "The target field in the Sankey diagram; must exist in the data.", "minLength": 1, "type": "string" }, "title": { "description": "Chart title text.", "type": "string" }, "titleOrient": { "description": "Title position in the chart.", "enum": [ "top", "left", "right", "bottom" ], "type": "string" }, "valueField": { "description": "Measure field. Must be numeric and exist in the data.", "minLength": 1, "type": "string" }, "width": { "description": "Chart width. Optional, defaults to 500.", "type": "number" } }, "required": [ "dataTable", "sourceField", "targetField", "valueField" ], "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/VisActor/vchart-mcp-server'

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