# Bar Chart: Stat & chart element for AI agents

> Compare 3-7 values over time/categories; highlight the winner

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

## Overview

- Name: Bar Chart (`barChart`), an element: one HyperFrames block per size
- Part of: the [Orange Collage](https://agentframes.ai/packs/orange-collage.md) pack (1 of 31). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Compare 3-7 values over time/categories; highlight the winner
- Pack: [Orange Collage](https://agentframes.ai/packs/orange-collage.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: 16:9 (native), 9:16 (stage-fit), 4:5 (stage-fit)
- Canvases: works on grunge-white (`w`); avoid chalk-black (`k`), signal-orange (`o`)
- Typical duration: 1.8s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/orange-collage/bar-chart.mp4
- Poster: https://agentframes.ai/media/orange-collage/bar-chart.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Orange Collage pack. Add a `barChart` beat to plan.json on a `w` canvas with slots `bars`, `hi` and `title` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `bars` | json | Bars | JSON array; keep the same shape as the default. | [["Mon",3],["Tue",4],["Wed",2],["Thu",5],["Fri",9]] |
| `hi` | number | Hi | Plain text. | 4 |
| `title` | string | Title | HTML allowed; mark the ONE accent word with <span class="oc-o">…</span>. | Follow-ups sent <span class="oc-o">this week</span> |

## What your agent can change

### Surface

Compare 3-7 values over time/categories; highlight the winner. Category: `stat`. Canvases: ok `w`; avoid `k, o` (the element vanishes on these). Typical 1.8s; settles at 1.3s.

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

- `bars` (json) **EXAMPLE DATA: replace or get client sign-off**. JSON array; keep the same shape as the default.
- `hi` (number). Plain text.
- `title` (string). HTML allowed; mark the ONE accent word with <span class="oc-o">…</span>.

### Protected

Do not change the motion, timing, easing, stop-motion cadence, 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 `bars`, `hi` and `title` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Orange Collage look.

### Which aspect ratios does Bar Chart support?

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

### How do I get Bar Chart?

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

- [Isotype](https://agentframes.ai/elements/orange-collage/isotype.md): People/units icon rows with a share highlighted (N in 10)
- [Label Tape](https://agentframes.ai/elements/orange-collage/label-tape.md): Rules/standards punched out on label-maker tape
- [Multiplier](https://agentframes.ai/elements/orange-collage/multiplier.md): Punchy multiplier or count: giant xN stamped with a label
- [Odometer Stat](https://agentframes.ai/elements/orange-collage/odometer-stat.md): One big number rolling into place on odometer reels + label

## Community

Coming soon.
