Donut Stat

Renders a single key metric with a surrounding donut chart indicating

Surfaces
webmeet-stageapps-script-web
Degraded on
SurfaceNote
googlechatOnly the metric value, label, and percentage will be rendered as text. The visual donut chart is not supported.
Fields
FieldType
valuenumber (the current value, e.g., 75)required
max_valuenumber (the maximum possible value, e.g., 100)required
labelstring (descriptive label for the metric, e.g., 'Completion')required
unitstring (optional, unit for the value, e.g., '%')optional
colorstring (hex or named color for the donut segment, e.g., '#2196F3')required
sizestring (CSS size value, e.g., '100px')required
Example payload
{
  "type": "donut_stat",
  "value": 75,
  "max_value": 5,
  "label": "Donut Stat",
  "color": "#6366f1",
  "size": "md"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:donut_stat",
  "displayName": "Donut Stat",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/donut_stat",
  "capabilities": [
    "web",
    "meet-stage",
    "apps-script-web"
  ],
  "description": "Renders a single key metric with a surrounding donut chart indicating",
  "representativeQueries": [
    "show a CSS ring chart with centre value and percentage its proportion or progress",
    "renders a single key metric with a surrounding donut chart indicating",
    "render a donut stat"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

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 →