8 of 50 in the Tabletop pack

Bar Chart: Chip Stacks: Stat & chart element for AI agents

Two to six values as poker-chip stacks on one tray (a shared zero baseline). Each stack grows to its exact height while its number counts and rides its top; the highlighted stack is in the accent and the pawn drops onto it; an optional note marks illustrative data..

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

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

Paste this into Claude Code

Use the AgentFrames Tabletop pack. Add a `barChart` beat to plan.json on a `cream` canvas with slots `label`, `title`, `prefix`, `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
labelstringlabel: {"type":"string","minLength":1,"maxLength":34}.Round 5
titlestringtitle: {"type":"string","minLength":1,"maxLength":40}.The same £1,000, more rounds
prefixstringprefix: {"type":"string","minLength":1,"maxLength":3}.£
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":10000000}},"required":["label","value"]}}.[{"label":"Start","value":1000},{"label":"Year 5","value":1403},{"label":"Year 10","value":1967},{"label":"Year 20","value":3870}]
maxnumbermax: {"type":"number","minimum":0.000001,"maximum":10000000}.
decimalsnumberdecimals: {"type":"integer","minimum":0,"maximum":2}.0
highlightnumberhighlight: {"type":"integer","minimum":0,"maximum":5}.3
notestringnote: {"type":"string","minLength":1,"maxLength":60}.Illustration: 7% a year, no fees, tax or top-ups.

What your agent can change

Bar Chart: Chip Stacks. Native 1920×1080, 6.5s at 30fps.

Two to six values as poker-chip stacks on one tray (a shared zero baseline). Each stack grows to its exact height while its number counts and rides its top; the highlighted stack is in the accent and the pawn drops onto it; an optional note marks illustrative data.

Motion. Tray set down; stacks grow from it 0.2 s apart (ease-out, never past their value) with the numbers counting on the same curve; labels rise; the pawn falls onto the highlighted stack and squashes, and that stack's number lifts above it. Why it moves. change: stack height and number are the information, so they move together and land exactly; the pawn on top marks the one that matters.

Mount

Copy every manifest file into your project (plus af-tabletop-runtime). Mount with a unique host id, data-composition-id="af-tabletop-bar-chart-16x9", data-composition-src="compositions/af-tabletop-bar-chart-16x9.html", data-duration="6.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).

  • label: {"type":"string","minLength":1,"maxLength":34}
  • title (required): {"type":"string","minLength":1,"maxLength":40}
  • prefix: {"type":"string","minLength":1,"maxLength":3}
  • 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":10000000}},"required":["label","value"]}}
  • max: {"type":"number","minimum":0.000001,"maximum":10000000}
  • decimals: {"type":"integer","minimum":0,"maximum":2}
  • highlight: {"type":"integer","minimum":0,"maximum":5}
  • note: {"type":"string","minLength":1,"maxLength":60}
  • Values must be 0 or more. Stacks share the tray as a zero baseline; max sets the top of the scale (defaults to the largest value). A 0 shows no stack but keeps its label and number.
  • prefix goes before each number (e.g. "£"), unit after (e.g. "%"). Without highlight every stack takes a player colour and no pawn appears.

Style: colourway (cream, kitchen, sky), accent (optional hex), footer, round (e.g. 3/5), exit (lift or cut).

Timing

6.5s. Everything has landed by 3.9s (60%), then the scene holds for reading (the lamp light drifts slowly over the table; text stays still) and every piece is lifted off the table over the last 0.5 s, leaving the empty table.

Example

``json { "label": "Round 5", "title": "The same £1,000, more rounds", "prefix": "£", "unit": "", "items": "[{\"label\":\"Start\",\"value\":1000},{\"label\":\"Year 5\",\"value\":1403},{\"label\":\"Year 10\",\"value\":1967},{\"label\":\"Year 20\",\"value\":3870}]", "decimals": 0, "highlight": 3, "note": "Illustration: 7% a year, no fees, tax or top-ups." } ``

FAQ

What can my AI agent change in Bar Chart: Chip Stacks?

Your agent fills the label, title, prefix, 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 Tabletop look.

Which aspect ratios does Bar Chart: Chip Stacks support?

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

How do I get Bar Chart: Chip Stacks?

Bar Chart: Chip Stacks is included in the Tabletop 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 Tabletop pack

Bar Chart: Chip Stacks comes as part of Tabletop: 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 →

Wide (16:9) · 62s · made entirely with this pack

More in Tabletop

See all 50 elements in Tabletop →