Donut chart. Native 1920×1080, 6s at 30fps. Sits over the creator's footage (transparent outside its own parts).
A donut draws segment by segment; the highlighted share counts up in the middle; a legend lists each share.
Motion. Title builds; segments draw on cues; the centre number counts up; legend rows rise. Why it moves. change: the share fills as it is named.
Mount
Copy every manifest file into your project (plus af-origin-runtime). Mount with a unique host id, data-composition-id="af-origin-donut-chart-16x9", data-composition-src="compositions/af-origin-donut-chart-16x9.html", data-duration="6" and data-variable-values. Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled. Over live footage set backdrop to "" (the default still is only there so the block reads on its own).
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 (text is fitted to at most 75% of its design size, never cut).
lead: {"type":"string","maxLength":24}title: {"type":"string","maxLength":16}items (required): {"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","required":["label","value"],"properties":{"label":{"type":"string","maxLength":16},"value":{"type":"number","minimum":0,"maximum":1000000000}}}}highlight: {"type":"integer","minimum":0,"maximum":4}cues: {"type":"array","items":{"type":"number","minimum":0},"maxItems":5,"description":"seconds (block time) at which each item lands; time them to the transcript"}
- In a starter, pair it with a camera
rack beat so the footage softens behind it. The settled frame (4.5 s) of the 4x5 and 1x1 blocks ships as a still PNG.
Brand and layout
Brand variables (defaults from the pack's brand.json): creator, handle, channel, tagline, role, series, colourway, accent, monogram, logo, avatar, ctaFollow, ctaLink, ctaCode. colourway is lamplight, moonlight or ember; accent (hex) recolours the glow only and falls back if it would not read on the dark ground. Layout: backdrop, speakerFocus (crop of the speaker), capTop (px; 0 = upper chest with clear air under the chin for a centred 16:9 master).
Example
``json { "lead": "where orders", "title": "come from", "items": "[{\"label\":\"word of mouth\",\"value\":46},{\"label\":\"Instagram\",\"value\":31},{\"label\":\"markets\",\"value\":15},{\"label\":\"other\",\"value\":8}]", "highlight": 0 } ``