Skip to main content
Glama
VisActor
by VisActor

generate_dual_axis_chart

Create a dual-axis chart to compare two quantitative variables using bar and line series. Visualize trends and magnitudes across distinct y-axes for clear data analysis.

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

TableJSON 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

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