Skip to main content
Glama

vchart-mcp-server

by VisActor
MIT License
3
39
  • Apple

generate_cartesian_chart

Create Cartesian charts for various data visualization needs, including line, area, bar, waterfall, ranking bar, and funnel charts. Define chart type, dimensions, measures, and styling to visualize trends, comparisons, and processes effectively.

Instructions

Generates Cartesian charts: line (trends over time), area (cumulative totals), bar (category comparison), waterfall (incremental changes), ranking bar (ordered categories), and funnel (visualizes stages in a process or conversion rates).

Input Schema

NameRequiredDescriptionDefault
backgroundNoChart background color (hex). Optional, defaults to white.
chartThemeNoChart theme. Optional, defaults to 'light'.
chartTypeYes
colorFieldNoColor grouping field. Should not duplicate the dimension field.
colorsNoColor palette for chart elements.
dataTableYesData array, e.g., [{ x: '2018', y: 99.9 }]. Cannot be empty.
heightNoChart height. Optional, defaults to 500.
outputNoChart output type. Defaults to 'image'.image
stackOrPercentNoStacking mode: 'stack' for stacked data, 'percent' for percentage stacking. Requires 'color' field.
subTitleNoChart subtitle text.
timeFieldNoTime field, such as year or month. The x field and time field must be different. this field is required in ranking_bar
titleNoChart title text.
titleOrientNoTitle position in the chart.
transposeNoSet to true only when displaying a horizontal bar chart.
widthNoChart width. Optional, defaults to 500.
xAxisHasGridNoShow vertical grid lines for the X-axis.
xAxisHasLabelNoShow X-axis labels.
xAxisHasTickNoShow X-axis ticks.
xAxisOrientNoX-axis position in the chart.
xAxisTitleNoX-axis title.
xAxisTypeNoX-axis type: categorical ('band') or continuous ('linear').
xFieldYesDimension field. Must exist in the data.
yAxisHasGridNoShow horizontal grid lines for the Y-axis.
yAxisHasLabelNoShow Y-axis labels.
yAxisHasTickNoShow Y-axis ticks.
yAxisOrientNoY-axis position in the chart.
yAxisTitleNoY-axis title.
yAxisTypeNoY-axis type: categorical ('band') or continuous ('linear').
yFieldYesMeasure field. Must be numeric and exist in the data.

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" }, "chartType": { "enum": [ "area", "line", "bar", "waterfall", "ranking_bar", "funnel" ], "type": "string" }, "colorField": { "description": "Color grouping field. Should not duplicate the dimension field.", "type": "string" }, "colors": { "anyOf": [ { "items": { "description": "Color value", "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "Color palette for chart elements." }, "dataTable": { "description": "Data array, e.g., [{ x: '2018', y: 99.9 }]. Cannot be empty.", "items": { "additionalProperties": {}, "type": "object" }, "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" }, "stackOrPercent": { "description": "Stacking mode: 'stack' for stacked data, 'percent' for percentage stacking. Requires 'color' field.", "enum": [ "stack", "percent" ], "type": "string" }, "subTitle": { "description": "Chart subtitle text.", "type": "string" }, "timeField": { "description": "Time field, such as year or month. The x field and time field must be different. this field is required in ranking_bar", "type": "string" }, "title": { "description": "Chart title text.", "type": "string" }, "titleOrient": { "description": "Title position in the chart.", "enum": [ "top", "left", "right", "bottom" ], "type": "string" }, "transpose": { "description": "Set to true only when displaying a horizontal bar chart.", "type": "boolean" }, "width": { "description": "Chart width. Optional, defaults to 500.", "type": "number" }, "xAxisHasGrid": { "description": "Show vertical grid lines for the X-axis.", "type": "boolean" }, "xAxisHasLabel": { "description": "Show X-axis labels.", "type": "boolean" }, "xAxisHasTick": { "description": "Show X-axis ticks.", "type": "boolean" }, "xAxisOrient": { "description": "X-axis position in the chart.", "enum": [ "bottom", "top" ], "type": "string" }, "xAxisTitle": { "description": "X-axis title.", "type": "string" }, "xAxisType": { "description": "X-axis type: categorical ('band') or continuous ('linear').", "enum": [ "band", "linear" ], "type": "string" }, "xField": { "description": "Dimension field. Must exist in the data.", "minLength": 1, "type": "string" }, "yAxisHasGrid": { "description": "Show horizontal grid lines for the Y-axis.", "type": "boolean" }, "yAxisHasLabel": { "description": "Show Y-axis labels.", "type": "boolean" }, "yAxisHasTick": { "description": "Show Y-axis ticks.", "type": "boolean" }, "yAxisOrient": { "description": "Y-axis position in the chart.", "enum": [ "left", "right" ], "type": "string" }, "yAxisTitle": { "description": "Y-axis title.", "type": "string" }, "yAxisType": { "description": "Y-axis type: categorical ('band') or continuous ('linear').", "enum": [ "band", "linear" ], "type": "string" }, "yField": { "description": "Measure field. Must be numeric and exist in the data.", "minLength": 1, "type": "string" } }, "required": [ "chartType", "dataTable", "xField", "yField" ], "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