# Legend: Chart Key on the Tile: Label & callout element for AI agents

> A key to the colours and marks used in the pack's charts, set on the same dark tile: 2-5 rows, each a swatch (dot, line or bar), a label and its meaning, plus an optional note.

Canonical page: https://agentframes.ai/elements/muse/legend/
Markdown: https://agentframes.ai/elements/muse/legend.md

## Overview

- Name: Legend: Chart Key on the Tile (`legend`), an element: one HyperFrames block per size
- Part of: the [Muse](https://agentframes.ai/packs/muse.md) pack (30 of 50). Available only through the All-access subscription.
- Category: Label & callout
- Purpose: A key to the colours and marks used in the pack's charts, set on the same dark tile: 2-5 rows, each a swatch (dot, line or bar), a label and its meaning, plus an optional note.
- Pack: [Muse](https://agentframes.ai/packs/muse.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 Gallery (white) (`gallery`), Cream (warm paper) (`cream`), Night (deep violet-black) (`night`); avoid none
- Typical duration: 8.5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/muse/legend.mp4
- Poster: https://agentframes.ai/media/muse/legend.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Muse pack. Add a `legend` beat to plan.json on a `gallery` canvas with slots `label`, `title`, `items`, `note`, `cues`, `sceneIndex` and `sceneTotal` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `label` | string | label | {"type":"string","minLength":1,"maxLength":30} | HOW TO READ IT |
| `title` | string | title | {"type":"string","minLength":1,"maxLength":64} | The *key* to the charts |
| `items` | string | items | JSON string. {"type":"array","items":{"type":"object","properties":{"colour":{"type":"string","enum":["neon","lavender","violet","pink","gold","mint","periwinkle","accent"]},"mark":{"type":"string","enum":["dot","line","bar"]},"label":{"type":"string","minLength":1,"maxLength":18},"meaning":{"type":"string","minLength":1,"maxLength":44}},"required":["colour","mark","label"]},"minItems":2,"maxItems":5} | [{"colour":"neon","mark":"bar","label":"Neon bar","meaning":"This scene’s value"},{"colour":"lavender","mark":"bar","label":"Lilac bars","meaning":"For comparison"},{"colour":"neon","mark":"line","label":"Neon line","meaning":"Change over time"}] |
| `note` | string | note | {"type":"string","minLength":1,"maxLength":70} | Sources sit under each chart. |
| `cues` | string | cues | JSON string. {"type":"array","items":{"type":"number","minimum":0,"maximum":8.5},"maxItems":5} | [] |
| `sceneIndex` | number | Zero-based scene position (footer counter) |  | 0 |
| `sceneTotal` | number | Total scenes (footer counter) |  | 1 |

## What your agent can change

**Legend: Chart Key on the Tile** (Annotations). Native 1920×1080, 8.5s at 30fps.

A key to the colours and marks used in the pack's charts, set on the same dark tile: 2-5 rows, each a swatch (dot, line or bar), a label and its meaning, plus an optional note.

**Motion.** The tile fades up; at each cue a swatch draws (the line draws on, the bar grows, the dot pops) and its label and meaning slide in; the tile's neon rim breathes through the hold.
**Why it moves.** attention: each colour is introduced one at a time, before the viewer has to read it in a chart.

### Mount

Copy every manifest file path → target into your project (plus `af-muse-runtime`). Mount with a unique host id, `data-composition-id="af-muse-legend-16x9"`,
`data-composition-src="compositions/af-muse-legend-16x9.html"`, `data-duration="8.5"` and native `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 inside `data-variable-values`. Every slot is checked against `constraints.json` before anything draws;
the block stops with a message naming the slot, its value and the fix (it never truncates or shrinks text to fit). Measured layout
limits (lines per box, items per layout) are also enforced and reported the same way.

- `label`: string. {"type":"string","minLength":1,"maxLength":30}
- `title` (required): string. {"type":"string","minLength":1,"maxLength":64}
- `items` (required): JSON string. {"type":"array","items":{"type":"object","properties":{"colour":{"type":"string","enum":["neon","lavender","violet","pink","gold","mint","periwinkle","accent"]},"mark":{"type":"string","enum":["dot","line","bar"]},"label":{"type":"string","minLength":1,"maxLength":18},"meaning":{"type":"string","minLength":1,"maxLength":44}},"required":["colour","mark","label"]},"minItems":2,"maxItems":5}
- `note`: string. {"type":"string","minLength":1,"maxLength":70}
- `cues`: JSON string. {"type":"array","items":{"type":"number","minimum":0,"maximum":8.5},"maxItems":5}

- Colours match the chart palette: `neon` (highlight / line), `lavender` (other bars), then the donut series `violet`, `pink`, `gold`, `mint`, `periwinkle`; `accent` = your brand accent.

Style (role "style", defaults from brand.json): `brandName`, `series`, `colourway` (gallery | cream | night), `accent`, `tone` (auto | light | bold | soft; auto = light),
`headingFont` (Playfair Display | DM Serif Display), `bodyFont` (Playfair Display | DM Sans), `logo` (empty or inline base64 image), `footer`.
Footer playhead: `sceneIndex` (zero-based) and `sceneTotal`.

### Timing

8.5s. Everything has landed by 5.1s (60%), then the scene holds for reading and lifts out over the last 0.4 s. A reading-time check rejects copy that would not be readable before the outro.
`cues` are scene-relative seconds (from your transcript) for each item; leave `[]` to spread items evenly (never closer than 0.65 s).

### Example

```json
{
  "label": "HOW TO READ IT",
  "title": "The *key* to the charts",
  "items": "[{\"colour\":\"neon\",\"mark\":\"bar\",\"label\":\"Neon bar\",\"meaning\":\"This scene’s value\"},{\"colour\":\"lavender\",\"mark\":\"bar\",\"label\":\"Lilac bars\",\"meaning\":\"For comparison\"},{\"colour\":\"neon\",\"mark\":\"line\",\"label\":\"Neon line\",\"meaning\":\"Change over time\"}]",
  "note": "Sources sit under each chart.",
  "cues": "[]"
}
```

Source: editable HTML + the shared runtime. Facts in the example content: see the pack's docs/SOURCES.md.

## FAQ

### What can my AI agent change in Legend: Chart Key on the Tile?

Your agent fills the `label`, `title`, `items`, `note`, `cues`, `sceneIndex` and `sceneTotal` 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 Muse look.

### Which aspect ratios does Legend: Chart Key on the Tile support?

Legend: Chart Key on the Tile is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 8.5s.

### How do I get Legend: Chart Key on the Tile?

Legend: Chart Key on the Tile is included in the Muse 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 Muse

- [Pointer Callout: Click the Word](https://agentframes.ai/elements/muse/pointer-callout.md): A statement as a big serif stack; the pointer cursor glides in and clicks the word that matters, which highlights, and a dashed leader opens a note card.
- [Evidence Quote: Flying Quote Mark](https://agentframes.ai/elements/muse/evidence-quote.md): A cited quote: a giant heavy-italic quote mark flies in like a prop, the quote sets as an inline serif stack (key words heavy), and the source sits on a caps tag with optional context.
- [Caution: Drawn Sign + Shaking Tag](https://agentframes.ai/elements/muse/caution.md): A warning on the accent field: a white warning triangle draws on, its "!" stamps in, the caps tag shakes once, then the warning and a detail line; an optional prop (megaphone by default) sits beside it.
- [Magnifier Zoom](https://agentframes.ai/elements/muse/magnifier-zoom.md): A sentence set in the light italic; the magnifier sweeps along it and stops on the target phrase, which reads enlarged and highlighted inside the lens; a note card lands below.

## Community

Coming soon.
