Bar Chart (smears). Native 1920×1080, 5s at 30fps. A cutaway on the milk ground.
Up to six bars, each a product smear that swipes out to its value (the top bar in cherry gloss), values in italic Bodoni.
Motion. Smears swipe out 0.12 s apart; each value fades in as its bar lands. Why it moves. clarity: strokes of product as the measure.
Mount
Copy every manifest file into your project (plus af-swatch-runtime). Mount with a unique host id, data-composition-id="af-swatch-bar-chart-16x9", data-composition-src="compositions/af-swatch-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).
chip: {"type":"string","minLength":0,"maxLength":20}title (required): {"type":"string","minLength":1,"maxLength":32}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":6}},"required":["label","value"]}}
display overrides the value shown at the bar end.
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 (wipe or hold).
Example
``json { "chip": "", "title": "Hydration after *4 weeks*", "items": "[{\"label\":\"Week 0\",\"value\":38,\"display\":\"38%\"},{\"label\":\"Week 1\",\"value\":46,\"display\":\"46%\"},{\"label\":\"Week 2\",\"value\":55,\"display\":\"55%\"},{\"label\":\"Week 4\",\"value\":71,\"display\":\"71%\"}]" } ``