Skip to main content
Glama

vchart-mcp-server

by VisActor
MIT License
3
39
  • Apple

generate_dual_axis_chart

Create a dual-axis chart to compare trends and magnitudes of two quantitative variables using bar and line series. Ideal for visualizing distinct y-axes and analyzing data relationships.

Instructions

Generate a dual-axis chart for visualizing two quantitative variables using a combination of bar and line series. Ideal for comparing trends and magnitudes across two metrics with distinct y-axes.

Input Schema

NameRequiredDescriptionDefault
backgroundNoChart background color (hex). Optional, defaults to white.
chartThemeNoChart theme. Optional, defaults to 'light'.
colorFieldNoColor grouping field. Should not duplicate the dimension field.
colorsNoColor palette for chart elements.
dataTableYesInput data for the dual axis chart, e.g., [{ x: '2018', gmv: 99.9, user: 1200 }].
heightNoChart height. Optional, defaults to 500.
leftYAxisHasGridNoShow horizontal grid lines for the Y-axis.
leftYAxisHasLabelNoShow Y-axis labels.
leftYAxisHasTickNoShow Y-axis ticks.
leftYAxisTitleNoY-axis title.
outputNoChart output type. Defaults to 'image'.image
rightYAxisHasGridNo
rightYAxisHasLabelNo
rightYAxisHasTickNo
rightYAxisTitleNo
stackOrPercentNoStacking mode: 'stack' for stacked data, 'percent' for percentage stacking. Requires 'color' field.
subTitleNoChart subtitle text.
titleNoChart title text.
titleOrientNoTitle position in the 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.
xFieldYesDimension field. Must exist in the data.
yFieldYes

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" }, "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": "Input data for the dual axis chart, e.g., [{ x: '2018', gmv: 99.9, user: 1200 }].", "minItems": 1, "type": "array" }, "height": { "description": "Chart height. Optional, defaults to 500.", "type": "number" }, "leftYAxisHasGrid": { "description": "Show horizontal grid lines for the Y-axis.", "type": "boolean" }, "leftYAxisHasLabel": { "description": "Show Y-axis labels.", "type": "boolean" }, "leftYAxisHasTick": { "description": "Show Y-axis ticks.", "type": "boolean" }, "leftYAxisTitle": { "description": "Y-axis title.", "type": "string" }, "output": { "default": "image", "description": "Chart output type. Defaults to 'image'.", "enum": [ "spec", "image", "html" ], "type": "string" }, "rightYAxisHasGrid": { "$ref": "#/properties/leftYAxisHasGrid" }, "rightYAxisHasLabel": { "$ref": "#/properties/leftYAxisHasLabel" }, "rightYAxisHasTick": { "$ref": "#/properties/leftYAxisHasTick" }, "rightYAxisTitle": { "$ref": "#/properties/leftYAxisTitle" }, "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" }, "title": { "description": "Chart title text.", "type": "string" }, "titleOrient": { "description": "Title position in the chart.", "enum": [ "top", "left", "right", "bottom" ], "type": "string" }, "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" }, "xField": { "description": "Dimension field. Must exist in the data.", "minLength": 1, "type": "string" }, "yField": { "items": { "description": "Measure field. Must be numeric and exist in the data.", "minLength": 1, "type": "string" }, "maxItems": 2, "minItems": 2, "type": "array" } }, "required": [ "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