# Infographic: bar chart: Stat & chart element for AI agents

> Rounded sheet-style bars, one per row with its label, grow to their values with the number riding the tip; the highlight bar is green.

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

## Overview

- Name: Infographic: bar chart (`barChart`), an element: one HyperFrames block per size
- Part of: the [Echo](https://agentframes.ai/packs/echo.md) pack (43 of 57). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Rounded sheet-style bars, one per row with its label, grow to their values with the number riding the tip; the highlight bar is green.
- Pack: [Echo](https://agentframes.ai/packs/echo.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 (native), 4:5 (native), 1:1 (native)
- Canvases: works on none; avoid none
- Typical duration: 8s
- Speaker-safe: yes (can sit beside a speaker)
- Preview video (watermarked): https://agentframes.ai/media/echo/bar-chart.mp4
- Poster: https://agentframes.ai/media/echo/bar-chart.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Echo pack. Add a `barChart` beat to plan.json on a `k` canvas with slots `title`, `bars`, `highlight`, `max`, `unit`, `cues`, `at`, `still`, `side` and `stay` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `title` | string | title | {"type":"string","maxLength":40} | Minutes a day that *stick* |
| `bars` | string | bars | JSON string. {"type":"array","minItems":2,"maxItems":6,"items":{"type":"object","required":["label","value"],"properties":{"label":{"type":"string","maxLength":16,"minLength":1},"value":{"type":"number","minimum":0,"maximum":10000000}}}} | [{"label":"apps only","value":35},{"label":"reading","value":52},{"label":"talking","value":71},{"label":"the echo","value":88}] |
| `highlight` | number | highlight | {"type":"integer","minimum":0,"maximum":5} | 0 |
| `max` | number | max | {"type":"number","minimum":0,"maximum":10000000} | 0 |
| `unit` | string | unit | {"type":"string","maxLength":4} |  |
| `cues` | string | cues | JSON string. {"type":"array","items":{"type":"number","minimum":0},"maxItems":6,"description":"seconds (block time) at which each item lands; time them to the transcript"} |  |
| `at` | string | at | JSON string. {"type":"object","description":"optional land times in block seconds, to match the transcript: {title}","properties":{"title":{"type":"number","minimum":0}}} |  |
| `still` | boolean | still | {"type":"boolean","description":"true = everything settled on a full-frame board (the 4:5 / 1:1 infographic still)"} | false |
| `side` | enum | side | {"type":"string","enum":["left","right"],"description":"16:9 only: which side the board is on"} |  |
| `stay` | boolean | stay | {"type":"boolean"} | false |

## What your agent can change

**Infographic: bar chart**. Native 1920×1080, 8s at 30fps. Draws in the board above (16:9: beside) the speaker box (transparent everywhere else; the starter supplies the live board ground).

Rounded sheet-style bars, one per row with its label, grow to their values with the number riding the tip; the highlight bar is green.

**Motion.** Each row slides in on its cue; its bar grows (0.7 s, ease out) with the value counting at the tip. Outro: parts lift 14 px, soften with a 4 px blur and fade (0.22 s, ease in), last-in first-out, over the last ~0.4 s.
**Why it moves.** change: the comparison builds row by row; honest data: values stop at the data.

### Mount

Copy every manifest file into your project (plus `af-echo-runtime`). Mount with a unique host id, `data-composition-id="af-echo-bar-chart-16x9"`,
`data-composition-src="compositions/af-echo-bar-chart-16x9.html"`, `data-duration="8"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.
In a starter set `backdrop` to `""`: the starter draws the live board ground and the footage panel (the default still is only there so the block reads on its own).

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (text is fitted to at most 75% of its design size, never cut).

- `title`: {"type":"string","maxLength":40}
- `bars`: {"type":"array","minItems":2,"maxItems":6,"items":{"type":"object","required":["label","value"],"properties":{"label":{"type":"string","maxLength":16,"minLength":1},"value":{"type":"number","minimum":0,"maximum":10000000}}}}
- `highlight`: {"type":"integer","minimum":0,"maximum":5}
- `max`: {"type":"number","minimum":0,"maximum":10000000}
- `unit`: {"type":"string","maxLength":4}
- `cues`: {"type":"array","items":{"type":"number","minimum":0},"maxItems":6,"description":"seconds (block time) at which each item lands; time them to the transcript"}
- `at`: {"type":"object","description":"optional land times in block seconds, to match the transcript: {title}","properties":{"title":{"type":"number","minimum":0}}}
- `still`: {"type":"boolean","description":"true = everything settled on a full-frame board (the 4:5 / 1:1 infographic still)"}
- `side`: {"type":"string","enum":["left","right"],"description":"16:9 only: which side the board is on"}
- `stay`: {"type":"boolean"}


### Brand and layout

Brand variables (defaults from the pack's `brand.json`): `creator`, `handle`, `channel`, `tagline`, `series`, `niche`, `language`, `colourway`, `accent`, `monogram`, `logo`, `avatar`, `keyword`, `ctaFollow`, `ctaLink`, `ctaCode`, `ctaComment`. `colourway` is night, azulejo or chalk;
`accent` (hex) recolours the slab (titles' hairlines, slabs, tags, the forget pin, the ripple), and falls back if type would not read on it (4.5:1).
Layout: `side` (16:9 only: the board on the left or right), `backdrop` (a speaker still shown when the block is seen on its own;
"" over live footage), `speakerFocus` (crop of that still), `full` (true while the speaker box is open to the full frame),
`capY` (px; centre line of the captions, 0 = just above the speaker box, or on the chest when full).

### Example

```json
{
  "title": "Minutes a day that *stick*",
  "bars": "[{\"label\":\"apps only\",\"value\":35},{\"label\":\"reading\",\"value\":52},{\"label\":\"talking\",\"value\":71},{\"label\":\"the echo\",\"value\":88}]"
}
```

## FAQ

### What can my AI agent change in Infographic: bar chart?

Your agent fills the `title`, `bars`, `highlight`, `max`, `unit`, `cues`, `at`, `still`, `side` and `stay` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Echo look.

### Which aspect ratios does Infographic: bar chart support?

Infographic: bar chart is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 8s.

### How do I get Infographic: bar chart?

Infographic: bar chart is included in the Echo pack, which is part of the AgentFrames All-access subscription along with 56 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 Echo

- [The memory curve (forget vs echo)](https://agentframes.ai/elements/echo/memory-curve.md): The forgetting curve in a panel on the board, in the pack's retention chart: "Remembered" falls fast across "Days" while a counter follows the drawing tip (100% → 20%); a slab pin with a question mark lands on the point where you forget, with a tag ("you forget here") and the rest of the fall turns slab red; then the echo: the old curve dims and a green curve draws, jumping back up at every review (a green up-arrow chip pops on each, on your cues) and flattening out, and the counter ends on the kept number with a green tag ("say it twice"). With `still: true` everything is settled (the infographic still).
- [Stat beside the head (count-up)](https://agentframes.ai/elements/echo/stat-beside.md): A card with a big Red Hat 900 count-up, its unit in the blue italic, a line of context and a tag slab.
- [Poll: which one do you say?](https://agentframes.ai/elements/echo/poll.md): A two-option poll: option cards rise in, then both fill to their share with the percentages counting; the winner turns green and a tick pops on it.
- [Rate it /10](https://agentframes.ai/elements/echo/rate-it.md): Ten rising bars light blue one by one up to the score while the italic score counts ("7/10"); then the lit bars and the score turn green and the verdict slab sweeps in.

## Community

Coming soon.
