# Bar Chart: Stat & chart element for AI agents

> Creator stat + bars: oversized Playfair percentage counts up on a gradient block with stripes; colour-block bars cut in to their values (wears, ratings, minutes); a deep tag breaks out of the top

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

## Overview

- Name: Bar Chart (`barChart`), an element: one HyperFrames block per size
- Part of: the [Lookbook](https://agentframes.ai/packs/lookbook.md) pack (3 of 46). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Creator stat + bars: oversized Playfair percentage counts up on a gradient block with stripes; colour-block bars cut in to their values (wears, ratings, minutes); a deep tag breaks out of the top
- Pack: [Lookbook](https://agentframes.ai/packs/lookbook.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: 1:1 (native), 4:5 (stage-fit), 9:16 (stage-fit), 16:9 (stage-fit)
- Canvases: works on white mat (`w`), photo well grey (`g`); avoid none
- Typical duration: 4s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/lookbook/bar-chart.mp4
- Poster: https://agentframes.ai/media/lookbook/bar-chart.jpg
- Native 1:1 preview (watermarked): https://agentframes.ai/media/lookbook/bar-chart-native.mp4
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Lookbook pack. Add a `barChart` beat to plan.json on a `w` canvas with slots `top`, `value`, `unit`, `under`, `note`, `deadline`, `barUnit` and `bars` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `top` | string | Top | Plain text. | I rewore |
| `value` | number | Value | Plain text. | 92 |
| `unit` | string | Unit | Plain text. | % |
| `under` | string | Under | Plain text. | of it |
| `note` | string | Note | HTML allowed; mark up to TWO highlight words with <span class="lb-y">…</span>. | my 30-day<br>wardrobe test |
| `deadline` | string | Deadline | Plain text. | wears in 30 days |
| `barUnit` | string | Bar Unit | Plain text. | × |
| `bars` | json | Bars | JSON array; keep the same shape as the default. | [{"label":"wide-leg jeans","v":22},{"label":"the blazer","v":18},{"label":"grey knit","v":12}] |

## What your agent can change

### Surface

Creator stat + bars: oversized Playfair percentage counts up on a gradient block with stripes; colour-block bars cut in to their values (wears, ratings, minutes); a deep tag breaks out of the top. Category: `stat`. Canvases: ok `w, g`. Typical 4s; settles at 2.2s.

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

- `top` (string). Plain text.
- `value` (number) **EXAMPLE DATA: replace or get client sign-off**. Plain text.
- `unit` (string). Plain text.
- `under` (string). Plain text.
- `note` (string). HTML allowed; mark up to TWO highlight words with <span class="lb-y">…</span>.
- `deadline` (string). Plain text.
- `barUnit` (string). Plain text.
- `bars` (json) **EXAMPLE DATA: replace or get client sign-off**. JSON array; keep the same shape as the default.

Optional style/layout overrides: `way`. 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 Bar Chart?

Your agent fills the `top`, `value`, `unit`, `under`, `note`, `deadline`, `barUnit` and `bars` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Lookbook look.

### Which aspect ratios does Bar Chart support?

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

### How do I get Bar Chart?

Bar Chart is included in the Lookbook pack, which is part of the AgentFrames All-access subscription along with 45 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 Lookbook

- [Number Counter](https://agentframes.ai/elements/lookbook/number-counter.md): Milestone counter: an oversized Playfair number counts up on a gradient block, the label and a thank-you line sit on the light block below, a deep tag breaks out with the weekly gain
- [Rate It](https://agentframes.ai/elements/lookbook/rate-it.md): Honest review card: photo well on the left, item name and verdict on a light block, five dots fill to the rating and a deep score tag breaks out counting up
- [Rating Meter](https://agentframes.ai/elements/lookbook/rating-meter.md): Score out of ten: ten block cells fill one by one to the score, the item title in Playfair above, a deep tag breaks out with the score counting up
- [This or That Poll](https://agentframes.ai/elements/lookbook/this-or-that.md): This or that poll: two photo wells cut in, then the vote bar splits between them as two blocks and both percentages count up; a deep question tag breaks out of the top

## Community

Coming soon.
