Renders an interactive bar chart using Chart.js with configurable datasets.
| Surface | Note |
|---|---|
| meet-stage | Chart.js canvas rendering inconsistent in stage iframe. |
| googlechat | Canvas not supported. |
| Canvas stripped. |
| Field | Type | |
|---|---|---|
| labels | array of strings. X-axis labels. | required |
| datasets | array of {label, data}. Chart datasets. | required |
{
"type": "chartjs_bar",
"labels": [
"Category A",
"Category B",
"Category C",
"Category D"
],
"datasets": [
{
"label": "Dataset A",
"data": [
65,
59,
80,
72
]
},
{
"label": "Dataset B",
"data": [
28,
48,
40,
55
]
}
]
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:chartjs_bar",
"displayName": "Chartjs Bar",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/chartjs_bar",
"capabilities": [
"web",
"apps-script-web"
],
"description": "Renders an interactive bar chart using Chart.js with configurable datasets.",
"representativeQueries": [
"show a interactive Chart.js bar chart with datasets",
"renders an interactive bar chart using chart.js with configurable datasets.",
"render a chartjs bar"
]
}
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 →