Rating Summary Bar

Aggregate star-rating histogram showing the percentage breakdown per star level (5★ through 1★). Distinct from rating_stars which shows a single score — this shows the full distribution with bar lengths proportional to vote share.

Surfaces
webmeet-stagegooglechatemailpdfapps-script-web
Fields
FieldType
averagenumber. Overall average rating (e.g. 4.3).required
totalnumber. Total number of ratings.required
breakdown{'type': 'array', 'description': 'List of {stars, count} from 5 down to 1.'}required
accentstring (optional, defaultoptional
Example payload
{
  "type": "rating_summary_bar",
  "average": 75,
  "total": 5,
  "breakdown": [
    {
      "stars": 5,
      "count": 48
    },
    {
      "stars": 4,
      "count": 30
    },
    {
      "stars": 3,
      "count": 12
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:rating_summary_bar",
  "displayName": "Rating Summary Bar",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/rating_summary_bar",
  "capabilities": [
    "web",
    "meet-stage",
    "googlechat",
    "email",
    "pdf",
    "apps-script-web"
  ],
  "description": "Aggregate star-rating histogram showing the percentage breakdown per star level (5\u2605 through 1\u2605). Distinct from rating_stars which shows a single score \u2014 this shows the full distribution with bar lengths proportional to vote share.",
  "representativeQueries": [
    "show a star rating histogram with percentage bars per star level",
    "aggregate star-rating histogram showing the percentage breakdown per star level (5\u2605 through 1\u2605). dis",
    "render a rating summary bar"
  ]
}
← 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 →