# Pill Bar Chart: Stat & chart element for AI agents

> Pill bar chart: a Bodoni italic title rises, then each row's pill grows to its value (top bar red, the rest blush) as the value counts up at its end

Canonical page: https://agentframes.ai/elements/rouge/bar-chart/
Markdown: https://agentframes.ai/elements/rouge/bar-chart.md

## Overview

- Name: Pill Bar Chart (`barChart`), an element: one HyperFrames block per size
- Part of: the [Rouge](https://agentframes.ai/packs/rouge.md) pack (4 of 44). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Pill bar chart: a Bodoni italic title rises, then each row's pill grows to its value (top bar red, the rest blush) as the value counts up at its end
- Pack: [Rouge](https://agentframes.ai/packs/rouge.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 4:5 (native), 1:1 (stage-fit), 9:16 (stage-fit), 16:9 (stage-fit)
- Canvases: works on cream paper (`p`), halftone (blush dots + rose arc on cream) (`h`), blush field (`b`), crimson field (`c`), crimson glow (red arcs on crimson) (`g`); avoid red field (`r`)
- Typical duration: 4s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/rouge/bar-chart.mp4
- Poster: https://agentframes.ai/media/rouge/bar-chart.jpg
- Native 4:5 preview (watermarked): https://agentframes.ai/media/rouge/bar-chart-native.mp4
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Rouge pack. Add a `barChart` beat to plan.json on a `p` canvas with slots `title`, `rows`, `suffix` and `max` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `title` | string | Title | Plain text. | Where my *clients*\|find me |
| `rows` | json | Rows | JSON array; keep the same shape as the default. | [["instagram",46],["podcast guests",27],["referrals",18],["newsletter",9]] |
| `suffix` | string | Suffix | Plain text. | % |
| `max` | number | Max | Plain text. | 0 |

## What your agent can change

### Surface

Pill bar chart: a Bodoni italic title rises, then each row's pill grows to its value (top bar red, the rest blush) as the value counts up at its end. Category: `stat`. Canvases: ok `p, h, b, c, g`; avoid `r` (the element vanishes on these). Typical 4s; settles at 2s.

### Editable (fill through plan.json `slots`)

- `title` (string). Plain text.
- `rows` (json) **EXAMPLE DATA: replace or get client sign-off**. JSON array; keep the same shape as the default.
- `suffix` (string). Plain text.
- `max` (number). Plain text.

Optional style/layout overrides: `ground`. Use them only to fix fit, never to change the brand.

### Protected

Do not change the motion, timing, easing, bounce, the palette roles (colours come from frame.md → tokens.css), fonts, or the element's internal layout. Keep copy close to the default length (±25%) so it fits.

### Safe editing

Set values in the beat's `slots` in plan.json, run `tools/validate.mjs`, rebuild, and check `qa/contact.jpg`. Never hand-edit the generated index.html or this element's code for a single video.

## FAQ

### What can my AI agent change in Pill Bar Chart?

Your agent fills the `title`, `rows`, `suffix` and `max` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Rouge look.

### Which aspect ratios does Pill Bar Chart support?

Pill Bar Chart is designed natively for 4:5 and stage-fits into 1:1, 9:16 and 16:9. A typical beat lasts 4s.

### How do I get Pill Bar Chart?

Pill Bar Chart is included in the Rouge pack, which is part of the AgentFrames All-access subscription along with 43 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Rouge

- [Big Number Counter](https://agentframes.ai/elements/rouge/number-counter.md): Big number: rules draw in from opposite sides, a giant caps number rises and counts up between them, the label fades up and a script word writes across
- [Ring Stat](https://agentframes.ai/elements/rouge/ring-stat.md): Ring stat: a thick red ring sweeps to the percentage while the condensed number counts up inside it, a thin ring and a halftone circle sit behind, and a Bodoni italic line lands the point
- [Word of the Week](https://agentframes.ai/elements/rouge/animated-word.md): Word of the week: each letter of a big caps word rises out of its own mask in a ripple, a rule draws under it and a red script phrase writes across
- [Arch Wipe](https://agentframes.ai/elements/rouge/arch-wipe.md): Arch transition: crimson and red arch windows grow up from the floor to fill the frame, the monogram writes on, then the arches lift away upward; cut at ~0.75s

## Community

Coming soon.
