4 of 44 in the Rouge pack

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.

Designed natively for 4:5. Above: the same element in the pack's 16:9 layout.
  • 1:1stage-fit
  • 16:9stage-fit
  • 9:16stage-fit
  • 4:5native

Watermarked preview. The Rouge pack includes all 44 elements, clean and editable, in every size.

Paste this into Claude Code

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

The slots your agent fills from your script, through plan.json.

SlotTypeWhat it holdsExample
titlestringTitle: Plain text.Where my *clients*|find me
rowsjsonRows: JSON array; keep the same shape as the default.[["instagram",46],["podcast guests",27],["referrals",18],["newsletter",9]]
suffixstringSuffix: Plain text.%
maxnumberMax: 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.

This is 1 of 44

Get the full Rouge pack

Pill Bar Chart comes as part of Rouge: 44 elements, 4 starter videos and every size (4:5, 1:1, 9:16, 16:9), re-brandable to your colours in one file. Included in All-access with every other pack.

See the whole pack →

Side by side (16:9) · 30s · made entirely with this pack

More in Rouge

See all 44 elements in Rouge →