Skip to main content
Glama
VisActor
by VisActor

generate_cartesian_chart

Create Cartesian charts—line, area, bar, waterfall, ranking bar, and funnel—to visualize trends, comparisons, or process stages. Input data, customize axes, labels, and themes, and export as spec, image, or HTML.

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

TableJSON 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.

Latest Blog Posts

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