Live Metric

Animated counter that counts up from start to a target value — alias for animated_counter

Surfaces
apps-script-web
Fields
FieldType
valuenumber (alias: end)required
startnumberoptional
durationnumber (optional, seconds)optional
prefixstringoptional
suffixstringoptional
labelstringoptional
decimalsintegeroptional
Example payload
{
  "type": "live_metric",
  "value": 1
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:live_metric",
  "displayName": "Live Metric",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/live_metric",
  "capabilities": [
    "apps-script-web"
  ],
  "description": "Animated counter that counts up from start to a target value \u2014 alias for animated_counter",
  "representativeQueries": [
    "show a animated counting number (alias for animated_counter)",
    "animated counter that counts up from start to a target value \u2014 alias for animated_counter",
    "render a live metric"
  ]
}
← 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 →