Line Chart: Pal Rides the Line. Native 1920×1080, 6.5s at 30fps.
A trend over time. The line draws left to right through three to eight points while a heart pal rides its tip; each point pops as the line reaches it; the last value lands above the pal, which turns to look at you.
Motion. Baseline draws; the line draws at an even pace (ease in-out); points spring in as reached; the pal follows the tip, tilting its gaze up or down with the slope, and squashes when the line ends; the final value rises. Why it moves. change: riding the line makes the direction physical, and only the end value is labelled so the eye lands there.
Mount
Copy every manifest file into your project (plus af-gumdrop-runtime). Mount with a unique host id, data-composition-id="af-gumdrop-line-chart-16x9", data-composition-src="compositions/af-gumdrop-line-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).
title (required): {"type":"string","minLength":1,"maxLength":40}points (required): {"type":"array","minItems":3,"maxItems":8,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":8},"value":{"type":"number","minimum":-1000000,"maximum":1000000}},"required":["label","value"]}}unit: {"type":"string","minLength":1,"maxLength":6}decimals: {"type":"integer","minimum":0,"maximum":2}min: {"type":"number","minimum":-1000000,"maximum":1000000}max: {"type":"number","minimum":-1000000,"maximum":1000000}note: {"type":"string","minLength":1,"maxLength":48}
min defaults to 0 and max to the largest value; every value must sit between them.
Style: colourway (night, cream, grape), accent (optional hex), footer, exit (pop or cut).
Timing
6.5s. Everything has landed by 3.9s (60%), then the scene holds for reading (the small candy shapes in the margins bob at a residual drift, text stays still) and every piece pops away over the last 0.5 s, leaving the empty ground.
Example
``json { "title": "Words remembered", "points": "[{\"label\":\"Wk 1\",\"value\":12},{\"label\":\"Wk 2\",\"value\":20},{\"label\":\"Wk 3\",\"value\":26},{\"label\":\"Wk 4\",\"value\":37},{\"label\":\"Wk 5\",\"value\":45},{\"label\":\"Wk 6\",\"value\":58}]", "unit": "", "decimals": 0, "min": 0, "max": 60, "note": "Illustrative figures" } ``