43 of 53 in the Split pack

Bar Chart (lanes): Stat & chart element for AI agents

Up to six bars as lanes that fill left to right, values in mono at the ends, the biggest bar in the accent..

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

Watermarked preview. The Split pack includes all 53 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Split pack. Add a `barChart` beat to plan.json on a `k` canvas with slots `title` and `items` 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":30}.Weekly *km*, my build
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":100000},"display":{"type":"string","minLength":0,"maxLength":8}},"required":["label","value"]}}.[{"label":"Wk 1","value":32},{"label":"Wk 4","value":41},{"label":"Wk 8","value":55},{"label":"Wk 12","value":68},{"label":"Taper","value":38}]

What your agent can change

Bar Chart (lanes). Native 1920×1080, 5s at 30fps. A cutaway on the asphalt ground.

Up to six bars as lanes that fill left to right, values in mono at the ends, the biggest bar in the accent.

Motion. Bars fill (ease-out) 0.12 s apart; each value fades up as its bar lands. Why it moves. clarity: lanes of different lengths read like a race in progress.

Mount

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

  • title (required): {"type":"string","minLength":1,"maxLength":30}
  • 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":8}},"required":["label","value"]}}
  • display overrides the value shown at the bar end ("68 km").

Brand and layout

Brand variables (defaults from brand.json): colourway, accent, creator, handle, channel, tagline, monogram, ctaFollow, ctaLink, ctaCode. Layout: capTop (caption top, px), zoneTop (card zone top, px), exit (lift or hold).

Example

``json { "title": "Weekly *km*, my build", "items": "[{\"label\":\"Wk 1\",\"value\":32},{\"label\":\"Wk 4\",\"value\":41},{\"label\":\"Wk 8\",\"value\":55},{\"label\":\"Wk 12\",\"value\":68},{\"label\":\"Taper\",\"value\":38}]" } ``

FAQ

What can my AI agent change in Bar Chart (lanes)?

Your agent fills the 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 Split look.

Which aspect ratios does Bar Chart (lanes) support?

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

How do I get Bar Chart (lanes)?

Bar Chart (lanes) is included in the Split 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.

This is 1 of 53

Get the full Split pack

Bar Chart (lanes) comes as part of Split: 53 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) · 30s · made entirely with this pack

More in Split

See all 53 elements in Split →