# Bar Chart: Stat & chart element for AI agents

> Up to six horizontal bars with caps labels, the top bar in the accent, values at the ends.

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

## Overview

- Name: Bar Chart (`barChart`), an element: one HyperFrames block per size
- Part of: the [Seedhouse](https://agentframes.ai/packs/seedhouse.md) pack (43 of 53). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Up to six horizontal bars with caps labels, the top bar in the accent, values at the ends.
- Pack: [Seedhouse](https://agentframes.ai/packs/seedhouse.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: 5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/seedhouse/bar-chart.mp4
- Poster: https://agentframes.ai/media/seedhouse/bar-chart.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

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

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `kicker` | string | kicker | {"type":"string","minLength":0,"maxLength":14} |  |
| `title` | string | title | {"type":"string","minLength":1,"maxLength":32} | Yield per *plant* |
| `items` | string | items | JSON string. {"type":"array","minItems":2,"maxItems":6,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":10},"value":{"type":"number","minimum":0,"maximum":100000},"display":{"type":"string","minLength":0,"maxLength":6}},"required":["label","value"]}} | [{"label":"Courgette","value":8,"display":"8kg"},{"label":"Tomato","value":4,"display":"4kg"},{"label":"Bean","value":2,"display":"2kg"},{"label":"Kale","value":1.5,"display":"1.5kg"}] |

## What your agent can change

**Bar Chart**. Native 1920×1080, 5s at 30fps. A full-frame card on the packet.

Up to six horizontal bars with caps labels, the top bar in the accent, values at the ends.

**Motion.** Bars shoot out (ease-out) 0.1 s apart; values fade in as they land.
**Why it moves.** clarity: the gap between bars is the argument.

### Mount

Copy every manifest file into your project (plus `af-seedhouse-runtime`). Mount with a unique host id, `data-composition-id="af-seedhouse-bar-chart-16x9"`,
`data-composition-src="compositions/af-seedhouse-bar-chart-16x9.html"`, `data-duration` and `data-variable-values`. A longer `data-duration` than 5s
extends the hold (the exit moves to the end of the mount). Use the variant whose size matches your project: each is laid out natively, never scaled.

### 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 (it never truncates or shrinks text).

- `kicker`: {"type":"string","minLength":0,"maxLength":14}
- `title` (required): {"type":"string","minLength":1,"maxLength":32}
- `items` (required): {"type":"array","minItems":2,"maxItems":6,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":10},"value":{"type":"number","minimum":0,"maximum":100000},"display":{"type":"string","minLength":0,"maxLength":6}},"required":["label","value"]}}

- Demo figures are illustrative.

### Brand and layout

Brand variables (defaults from `brand.json`): `colourway`, `accent`, `creator`, `handle`, `channel`, `tagline`, `monogram`, `avatar`, `ctaFollow`, `ctaLink`, `ctaCode`. Layout: `exit` (tuck or hold).

### Example

```json
{
  "kicker": "",
  "title": "Yield per *plant*",
  "items": "[{\"label\":\"Courgette\",\"value\":8,\"display\":\"8kg\"},{\"label\":\"Tomato\",\"value\":4,\"display\":\"4kg\"},{\"label\":\"Bean\",\"value\":2,\"display\":\"2kg\"},{\"label\":\"Kale\",\"value\":1.5,\"display\":\"1.5kg\"}]"
}
```

## FAQ

### What can my AI agent change in Bar Chart?

Your agent fills the `kicker`, `title` and `items` 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 Seedhouse look.

### Which aspect ratios does Bar Chart support?

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

### How do I get Bar Chart?

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

- [Sowing Guide](https://agentframes.ai/elements/seedhouse/sowing-guide.md): The step beat: the sowing calendar fills month by month in the stage colours (sow in leaf green, plant out in mustard, pick in tomato) with the current month ringed in tomato; the wooden plant stake pushes in with STEP n and a handwritten note; the dashed easy-grow seal stamps on.
- [Stat Tile](https://agentframes.ai/elements/seedhouse/stat-tile.md): One big figure on a green board that counts up and lands exactly, its label in mustard and an optional context line.
- [Poll](https://agentframes.ai/elements/seedhouse/poll.md): A poll: the question on a board, two or three options as bars that fill to their share, the winner in mustard.
- [Then vs Now](https://agentframes.ai/elements/seedhouse/then-now.md): Two stat tiles side by side, THEN (muted) and NOW (accent edge), the NOW figure counting up, with a context line.

## Community

Coming soon.
