# Data Chart: Hatched Bars: Stat & chart element for AI agents

> A series of 2-8 values as hand-drawn bars from a zero baseline: the axes are drawn, each bar is outlined and hatched, its value written on top (or at its end in 9:16 and 4:5, where the bars run across), and the highlighted bar is hatched in green with its value circled.

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

## Overview

- Name: Data Chart: Hatched Bars (`barChart`), an element: one HyperFrames block per size
- Part of: the [Squeak](https://agentframes.ai/packs/squeak.md) pack (8 of 50). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: A series of 2-8 values as hand-drawn bars from a zero baseline: the axes are drawn, each bar is outlined and hatched, its value written on top (or at its end in 9:16 and 4:5, where the bars run across), and the highlighted bar is hatched in green with its value circled.
- Pack: [Squeak](https://agentframes.ai/packs/squeak.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: 10.5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/squeak/bar-chart.mp4
- Poster: https://agentframes.ai/media/squeak/bar-chart.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Squeak pack. Add a `barChart` beat to plan.json on a `k` canvas with slots `title`, `label`, `prefix`, `unit`, `points`, `decimals`, `max`, `highlight` and `note` 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","minLength":1,"maxLength":50} | Who people _trust_ |
| `label` | string | label | {"type":"string","minLength":1,"maxLength":40} | Share who trust each kind of message |
| `prefix` | string | prefix | {"type":"string","minLength":0,"maxLength":3} |  |
| `unit` | string | unit | {"type":"string","minLength":0,"maxLength":6} | % |
| `points` | string | points | JSON string. {"type":"array","minItems":2,"maxItems":8,"items":{"type":"object","properties":{"x":{"type":"string","minLength":1,"maxLength":16},"v":{"type":"number","minimum":0,"maximum":1000000}},"required":["x","v"]}} | [{"x":"Friends","v":83},{"x":"Brand sites","v":70},{"x":"Online reviews","v":66},{"x":"Opt-in emails","v":56},{"x":"Banner ads","v":42}] |
| `decimals` | number | decimals | {"type":"integer","minimum":0,"maximum":2} | 0 |
| `max` | number | max | {"type":"number","minimum":1,"maximum":1000000} | 100 |
| `highlight` | number | highlight | {"type":"integer","minimum":0,"maximum":7} | 0 |
| `note` | string | note | {"type":"string","minLength":1,"maxLength":64} | Nielsen Global Trust in Advertising, 2015 |

## What your agent can change

**Data Chart: Hatched Bars**. Native 1920×1080, 10.5s at 30fps.

A series of 2-8 values as hand-drawn bars from a zero baseline: the axes are drawn, each bar is outlined and hatched, its value written on top (or at its end in 9:16 and 4:5, where the bars run across), and the highlighted bar is hatched in green with its value circled.

**Motion.** Axes in two strokes; for each bar: the outline up and over, fast hatching, the value, the label; then the green loop on the highlight. Bars never pass their value.
**Why it moves.** change: each bar drawn to its height is the value; hatching it in turn keeps the eye on one number at a time.

### Mount

Copy every manifest file into your project (plus `af-squeak-runtime`). Mount with a unique host id, `data-composition-id="af-squeak-bar-chart-16x9"`,
`data-composition-src="compositions/af-squeak-bar-chart-16x9.html"`, `data-duration="10.5"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): 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).

- `title`: {"type":"string","minLength":1,"maxLength":50}
- `label`: {"type":"string","minLength":1,"maxLength":40}
- `prefix`: {"type":"string","minLength":0,"maxLength":3}
- `unit`: {"type":"string","minLength":0,"maxLength":6}
- `points` (required): {"type":"array","minItems":2,"maxItems":8,"items":{"type":"object","properties":{"x":{"type":"string","minLength":1,"maxLength":16},"v":{"type":"number","minimum":0,"maximum":1000000}},"required":["x","v"]}}
- `decimals`: {"type":"integer","minimum":0,"maximum":2}
- `max`: {"type":"number","minimum":1,"maximum":1000000}
- `highlight`: {"type":"integer","minimum":0,"maximum":7}
- `note`: {"type":"string","minLength":1,"maxLength":64}

- `title`: optional, Markup: plain words are written in black, _words_ in the key green (underlined, or circled in the hook), *words* in the blue. "|" forces a line break. Titles are written in capitals.
- `prefix` / `unit`: written before / after every value (e.g. £, %). Bars run from 0 to `max` (default: the next round number above the largest value); negative values are rejected; a value above `max` is rejected.
- `highlight`: the bar hatched in green and circled (default: the largest).
- `note`: written small at the bottom left; use it to source the data or mark it illustrative.

Style: `colourway` (classic, glass, grid), `accent` (optional hex for the key marker), `footer`, `sound` (on, off), `volume` (0-1, default 0.8), `enter` and `exit` (pan, hold or flip).

### Sound

Every stroke makes its marker sound (writing scratches, line strokes, the circle squeak, the tick, taps), booked from the same
schedule that draws it, so edited content stays in sync. The clips come from `assets/af-squeak/sfx/` (synthesised, no
recordings). `sound: "off"` makes the block silent; `volume` scales every clip.

### Timing

10.5s. Everything has been drawn by 6.3s (60%), then the scene holds for reading (the board's gloss
drifts, the writing stays still). Longer content is written faster (up to 2.5x); content that still would not finish stops the
block with a message. The board slides in from the right over the first 0.62 s and, with exit "pan", slides out to the left over the last 0.62 s at the same speed, so scenes laid end to end read as one long board.

### Example

```json
{
  "title": "Who people _trust_",
  "label": "Share who trust each kind of message",
  "unit": "%",
  "points": "[{\"x\":\"Friends\",\"v\":83},{\"x\":\"Brand sites\",\"v\":70},{\"x\":\"Online reviews\",\"v\":66},{\"x\":\"Opt-in emails\",\"v\":56},{\"x\":\"Banner ads\",\"v\":42}]",
  "decimals": 0,
  "max": 100,
  "highlight": 0,
  "note": "Nielsen Global Trust in Advertising, 2015"
}
```

## FAQ

### What can my AI agent change in Data Chart: Hatched Bars?

Your agent fills the `title`, `label`, `prefix`, `unit`, `points`, `decimals`, `max`, `highlight` and `note` 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 Squeak look.

### Which aspect ratios does Data Chart: Hatched Bars support?

Data Chart: Hatched Bars is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 10.5s.

### How do I get Data Chart: Hatched Bars?

Data Chart: Hatched Bars is included in the Squeak pack, which is part of the AgentFrames All-access subscription along with 49 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 Squeak

- [Big Statistic](https://agentframes.ai/elements/squeak/big-statistic.md): One number that matters, written huge over a green hatched band, with its meaning below and its source small in the corner.
- [Line Chart: Point to Point](https://agentframes.ai/elements/squeak/line-chart.md): 3-10 values as a blue line drawn point to point from a zero baseline; dots tapped on; the first, last and highlighted values written, the highlight circled.
- [Donut Chart: The Cut Circle](https://agentframes.ai/elements/squeak/donut-chart.md): 2-5 parts of a whole: a hand-drawn ring cut by radii, each part labelled with its % outside the ring; the highlighted part is shaded green.
- [Pictogram Ratio: N in 10](https://agentframes.ai/elements/squeak/pictogram-ratio.md): "N in 10": ten (or `of`) icons drawn in grey, then the counted ones drawn over in green, the ratio written big and its meaning below.

## Community

Coming soon.
