Line Chart: The Dot Draws It. Native 1920×1080, 7.5s at 30fps.
A trend over three to eight points. Gridlines and their values draw in, then the dot draws the line point by point (each marker appears as it is reached) and the last value lands at the end.
Motion. Baseline + two gridlines draw; axis labels rise; the dot leads the line along its path (ease in-out overall); markers appear as the line reaches them; final value rises. Why it moves. change: the line is drawn in time order, so the trend reads as it happens.
Mount
Copy every manifest file into your project (plus af-toggle-runtime). Mount with a unique host id, data-composition-id="af-toggle-line-chart-16x9", data-composition-src="compositions/af-toggle-line-chart-16x9.html", data-duration="7.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}unit: {"type":"string","minLength":1,"maxLength":6}points (required): {"type":"array","minItems":3,"maxItems":8,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":6},"value":{"type":"number","minimum":-1000000,"maximum":1000000}},"required":["label","value"]}}min: {"type":"number","minimum":-1000000,"maximum":1000000}max: {"type":"number","minimum":-1000000,"maximum":1000000}decimals: {"type":"integer","minimum":0,"maximum":2}note: {"type":"string","minLength":1,"maxLength":48}
- The scale runs from
min (default 0) to max (default the largest value); every value must sit inside it. Gridlines show min, middle and max with the unit.
Style: colourway (lime, cobalt, coral), accent (optional hex), footer, ground: dark only, exit (slide or cut).
Timing
7.5s. Everything has landed by 4.5s (60%), then the scene holds for reading (the grid and the faint rings slow to a residual drift, text stays still) and slides out to the left in a motion blur over the last 0.5 s, leaving the empty ground.
Example
``json { "title": "Average view time", "unit": "s", "points": "[{\"label\":\"W1\",\"value\":4},{\"label\":\"W2\",\"value\":5},{\"label\":\"W3\",\"value\":9},{\"label\":\"W4\",\"value\":11},{\"label\":\"W5\",\"value\":16}]", "min": 0, "max": 20, "decimals": 0, "note": "Illustrative figures" } ``