# Bar Chart: Stat & chart element for AI agents

> Bar chart: glass panel, seven glass columns rise, the best day fills teal with its value and a sparkle

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

## Overview

- Name: Bar Chart (`barChart`), an element: one HyperFrames block per size
- Part of: the [Frost](https://agentframes.ai/packs/frost.md) pack (3 of 45). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Bar chart: glass panel, seven glass columns rise, the best day fills teal with its value and a sparkle
- Pack: [Frost](https://agentframes.ai/packs/frost.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: 9:16 (native), 16:9 (stage-fit)
- Canvases: works on frost haze (hero) (`f`), mist white (`m`), aqua glow (`a`); avoid night glass (`n`)
- Typical duration: 4s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/frost/bar-chart.mp4
- Poster: https://agentframes.ai/media/frost/bar-chart.jpg
- Native 9:16 preview (watermarked): https://agentframes.ai/media/frost/bar-chart-native.mp4
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Frost pack. Add a `barChart` beat to plan.json on a `f` canvas with slots `kicker`, `title`, `labels`, `values`, `best` and `unit` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `kicker` | string | Kicker | Plain text. | Views by posting day |
| `title` | string | Title | Plain text. | Tuesday wins. |
| `labels` | json | Labels | JSON array; keep the same shape as the default. | ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"] |
| `values` | json | Values | JSON array; keep the same shape as the default. | [42,88,61,55,47,30,36] |
| `best` | number | Best | Plain text. | -1 |
| `unit` | string | Unit | Plain text. | k |

## What your agent can change

### Surface

Bar chart: glass panel, seven glass columns rise, the best day fills teal with its value and a sparkle. Category: `stat`. Canvases: ok `f, m, a`; avoid `n` (the element vanishes on these). Typical 4s; settles at 2.2s.

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

- `kicker` (string). Plain text.
- `title` (string) **EXAMPLE DATA: replace or get client sign-off**. Plain text.
- `labels` (json). JSON array; keep the same shape as the default.
- `values` (json) **EXAMPLE DATA: replace or get client sign-off**. JSON array; keep the same shape as the default.
- `best` (number). Plain text.
- `unit` (string). Plain text.

Optional style/layout overrides: `y`. 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 `kicker`, `title`, `labels`, `values`, `best` and `unit` slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Frost look.

### Which aspect ratios does Bar Chart support?

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

### How do I get Bar Chart?

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

- [Number Counter](https://agentframes.ai/elements/frost/number-counter.md): Number counter: each digit rolls up in its own glass tile, change pill with an arrow below
- [Progress Ring](https://agentframes.ai/elements/frost/progress-ring.md): Progress ring: glass disc, teal arc draws to the value while the % counts up, sparkle rides the arc end
- [Before / After Stat](https://agentframes.ai/elements/frost/stat-compare.md): Big-number stat on a glass panel: number counts up, before/after bars fill (after in teal)
- [Animated Word](https://agentframes.ai/elements/frost/animated-word.md): Animated word: one big word whose letters defrost one by one from alternating heights, sparkle on the last letter

## Community

Coming soon.
