8 of 50 in the Archetype pack

Bar Chart: The Towers: Stat & chart element for AI agents

Two to six values as lattice towers rising out of the water (the waterline is zero). Values count up with the tower heights; labels sit on the water; the highlighted tower gets a red tip and a figure lands on top of it and raises its arms..

  • 1:1native
  • 16:9native
  • 9:16native
  • 4:5native

Watermarked preview. The Archetype pack includes all 50 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Archetype pack. Add a `barTowers` beat to plan.json on a `k` canvas with slots `title`, `unit`, `items`, `max`, `decimals`, `highlight` and `note` from my script. Then run validate → build → qa and show me qa/contact.jpg.

Variables

The slots your agent fills from your script, through plan.json.

SlotTypeWhat it holdsExample
titlestringtitle: {"type":"string","minLength":1,"maxLength":44}.Drafts shipped, *week by week*
unitstringunit: {"type":"string","minLength":1,"maxLength":6}.
itemsstringitems: 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":1000000}},"required":["label","value"]}}.[{"label":"Week 1","value":1},{"label":"Week 2","value":3},{"label":"Week 3","value":5},{"label":"Week 4","value":8}]
maxnumbermax: {"type":"number","minimum":0.000001,"maximum":1000000}.
decimalsnumberdecimals: {"type":"integer","minimum":0,"maximum":2}.0
highlightnumberhighlight: {"type":"integer","minimum":0,"maximum":5}.3
notestringnote: {"type":"string","minLength":1,"maxLength":44}.Illustrative figures

What your agent can change

Bar Chart: The Towers. Native 1920×1080, 7s at 30fps.

Two to six values as lattice towers rising out of the water (the waterline is zero). Values count up with the tower heights; labels sit on the water; the highlighted tower gets a red tip and a figure lands on top of it and raises its arms.

Motion. Towers grow up out of the surface 0.16 s apart (ease-out, never past their value) with their reflections, numbers counting on the same curve and riding the tops; labels rise; the figure drops onto the highlighted tower and celebrates. Why it moves. change: height and number are the information, so they move together and land exactly.

Mount

Copy every manifest file into your project (plus af-archetype-runtime). Mount with a unique host id, data-composition-id="af-archetype-bar-towers-16x9", data-composition-src="compositions/af-archetype-bar-towers-16x9.html", data-duration="7" 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 (required): {"type":"string","minLength":1,"maxLength":44}
  • unit: {"type":"string","minLength":1,"maxLength":6}
  • 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":1000000}},"required":["label","value"]}}
  • max: {"type":"number","minimum":0.000001,"maximum":1000000}
  • decimals: {"type":"integer","minimum":0,"maximum":2}
  • highlight: {"type":"integer","minimum":0,"maximum":5}
  • note: {"type":"string","minLength":1,"maxLength":44}
  • Values must be 0 or more. The waterline is the zero baseline; max sets the top of the scale (defaults to the largest value). A 0 shows no tower but keeps its label and "0".
  • unit is appended to each number. decimals sets the rounding. highlight is the 0-based index of the tower the figure lands on.

Style: colourway (void, abyss, dusk), accent (optional hex for the tip colour), footer, enter / exit (dark or cut).

Timing

7s. Everything has landed by 4.2s (60%), then the scene holds for reading (figures keep a small idle, ripples spread, text stays still). It fades up out of black and closes to black over the last 0.5 s.

Example

``json { "title": "Drafts shipped, *week by week*", "unit": "", "items": "[{\"label\":\"Week 1\",\"value\":1},{\"label\":\"Week 2\",\"value\":3},{\"label\":\"Week 3\",\"value\":5},{\"label\":\"Week 4\",\"value\":8}]", "decimals": 0, "highlight": 3, "note": "Illustrative figures" } ``

FAQ

What can my AI agent change in Bar Chart: The Towers?

Your agent fills the title, unit, items, max, decimals, 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 Archetype look.

Which aspect ratios does Bar Chart: The Towers support?

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

How do I get Bar Chart: The Towers?

Bar Chart: The Towers is included in the Archetype 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.

This is 1 of 50

Get the full Archetype pack

Bar Chart: The Towers comes as part of Archetype: 50 elements, 4 starter videos and every size (16:9, 9:16, 4:5, 1:1), re-brandable to your colours in one file. Included in All-access with every other pack.

See the whole pack →

Full frame (16:9) · 57s · made entirely with this pack

More in Archetype

See all 50 elements in Archetype →