Skip to main content
Glama

Kalpana Designer

Make a chart from data

make_chart

Draw a chart from numbers as editable layers in a design: line, area, bar, horizontal bar, stacked bar, scatter, donut, pie, sparkline, progress ring, gauge or radar. Every point, bar, tick and label is computed exactly. Pick a style, a palette and a font_size; never hand-write chart paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesWhere the chart sits in its parent, and its size, px.
yYes
maxNoProgress ring, gauge and radar: the full-scale value (default 100, or radar's largest value).
axesNoAxis labels, x and y together (default: per style; off for sparklines and rings). `x_labels` and `y_labels` set each side on its own.
dotsNoA dot on each point (default: per style).
gridNo
kindNo
nameNoThe chart layer's name (default "Chart").
sizesNoScatter: a size per point, making it a bubble chart.
styleNoHow it is drawn (default clean). Vary it with the design.
ticksNoGrid lines (default 4). With both y_min and y_max the lines are exactly (y_max - y_min) / ticks apart. 0 = no grid lines, no y tick labels and no left margin.
widthYes
y_maxNo
y_minNoFix the value range (default: from 0, or the data's minimum when it is below 0, up to a round number above the maximum).
cornerNoBar corner radius px (default per style; half the width = pill).
heightYes
intentYesOne short sentence: what you change and why. Kept in the design history.
labelsNoA label per value along the x axis (per bar, segment or spoke).
legendNoA key of series names above the plot (default: when 2+ series); on donuts and pies, of the `labels` (default: when given).
prefixNo
seriesYes
smoothNoCurve lines through the points (default: per style).
suffixNo
page_idYesThe page to work on, as returned by create_design.
paletteNoSeries colours in order, as hex. Default: a built-in palette.
step_atNoStep chart: where the level changes between two points. `start` (default) holds a value until the next point, `end` jumps at the first point of each pair, `middle` changes halfway.
decimalsNoDecimal places in value labels (default: 0 for whole data, else 1), or "auto" to print as many as the data and fixed range need.
x_labelsNoThe category labels under the plot (default: as `axes`).
x_valuesNoScatter: the x of each point (default 0, 1, 2...).
y_labelsNoThe value tick labels left of the plot (default: as `axes`).
bar_widthNoBar thickness as a share of its slot, 0.1 to 1 (default per style).
font_sizeNoSize of every chart label, px (default: the height / 22, at least 24 px, so it reads when the chart is shown small; below about 20 px the result warns).
parent_idNoPut the chart inside this layer (the scene when omitted).
thicknessNoRing thickness, px (donut, progress ring, gauge).
grid_colorNoHex.
line_widthNo
text_colorNoHex.
annotationsNoPoints worth pointing out.
font_familyNo
value_labelsNoLabel the last point / the top of each bar / the ring's value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources