Renders a small, simple line chart without axes or coordinates, showing
| Field | Type | |
|---|---|---|
| data | list of numbers (e.g., [10, 12, 8, 15, 13]) | required |
| color | string (hex or named color, e.g., '#4CAF50' or 'green') | required |
| line_width | number (e.g., 2) | required |
| height | string (CSS height value, e.g., '20px') | required |
| width | string (CSS width value, e.g., '80px') | required |
{
"type": "sparkline",
"data": 1,
"color": "#6366f1",
"line_width": 1,
"height": "80px",
"width": "100%"
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:sparkline",
"displayName": "Sparkline",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/sparkline",
"capabilities": [
"web",
"meet-stage",
"apps-script-web"
],
"description": "Renders a small, simple line chart without axes or coordinates, showing",
"representativeQueries": [
"show a inline SVG trend line chart general trends",
"renders a small, simple line chart without axes or coordinates, showing",
"render a sparkline"
]
}
The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.
git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →