Line Chart: Point to Point. Native 1920×1080, 9.5s at 30fps.
3-10 values as a blue line drawn point to point from a zero baseline; dots tapped on; the first, last and highlighted values written, the highlight circled.
Motion. Axes, x labels, the line segment by segment, dots, values; the green loop. Why it moves. change: the line drawing in time order is the trend.
Mount
Copy every manifest file into your project (plus af-squeak-runtime). Mount with a unique host id, data-composition-id="af-squeak-line-chart-16x9", data-composition-src="compositions/af-squeak-line-chart-16x9.html", data-duration="9.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: {"type":"string","minLength":1,"maxLength":50}label: {"type":"string","minLength":1,"maxLength":40}prefix: {"type":"string","minLength":0,"maxLength":3}unit: {"type":"string","minLength":0,"maxLength":6}points (required): {"type":"array","minItems":3,"maxItems":10,"items":{"type":"object","properties":{"x":{"type":"string","minLength":1,"maxLength":8},"v":{"type":"number","minimum":0,"maximum":1000000}},"required":["x","v"]}}decimals: {"type":"integer","minimum":0,"maximum":2}max: {"type":"number","minimum":1,"maximum":1000000}highlight: {"type":"integer","minimum":0,"maximum":9}note: {"type":"string","minLength":1,"maxLength":64}
title: optional heading, Markup: plain = black, _words_ = key green (underlined), *words* = blue; "|" breaks a line. Titles are written in capitals.- Values from 0 to
max (default: the next round number above the largest); negatives are rejected. highlight: the circled value (default: the last).
Style: colourway (classic, glass, grid), accent (optional hex for the key marker), footer, sound (on, off), volume (0-1, default 0.8), enter and exit (pan, hold or flip).
Sound
Every stroke makes its marker sound (writing scratches, line strokes, the circle squeak, the tick, taps), booked from the same schedule that draws it, so edited content stays in sync. The clips come from assets/af-squeak/sfx/ (synthesised, no recordings). sound: "off" makes the block silent; volume scales every clip.
Timing
9.5s. Everything has been drawn by 5.7s (60%), then the scene holds for reading (the board's gloss drifts, the writing stays still). Longer content is written faster (up to 2.5x); content that still would not finish stops the block with a message. The board slides in from the right over the first 0.62 s and, with exit "pan", slides out to the left over the last 0.62 s at the same speed, so scenes laid end to end read as one long board.
Example
``json { "title": "Referrals _add up_", "label": "Referred clients a month", "points": "[{\"x\":\"Jan\",\"v\":1},{\"x\":\"Feb\",\"v\":2},{\"x\":\"Mar\",\"v\":2},{\"x\":\"Apr\",\"v\":4},{\"x\":\"May\",\"v\":5},{\"x\":\"Jun\",\"v\":8}]", "decimals": 0, "note": "Illustrative" } ``