| 1 | # Example — frame-data-rollup |
| 2 | |
| 3 | A native Remotion data frame: five weekday bars grow from zero while their |
| 4 | figures roll up to the real values, finishing together. |
| 5 | |
| 6 | ## Inputs |
| 7 | |
| 8 | ```json |
| 9 | { |
| 10 | "data": { |
| 11 | "title": "This week on GitHub", |
| 12 | "items": [ |
| 13 | { "label": "Mon", "value": 1200 }, |
| 14 | { "label": "Tue", "value": 2400 }, |
| 15 | { "label": "Wed", "value": 1800 }, |
| 16 | { "label": "Thu", "value": 4200 }, |
| 17 | { "label": "Fri", "value": 3600 } |
| 18 | ] |
| 19 | } |
| 20 | } |
| 21 | ``` |
| 22 | |
| 23 | ## Variant — units + custom palette |
| 24 | |
| 25 | ```json |
| 26 | { |
| 27 | "data": { |
| 28 | "title": "Stars by month", |
| 29 | "unit": "K", |
| 30 | "items": [ |
| 31 | { "label": "Mar", "value": 12 }, |
| 32 | { "label": "Apr", "value": 28 }, |
| 33 | { "label": "May", "value": 47 } |
| 34 | ] |
| 35 | }, |
| 36 | "accent": "#34D399", |
| 37 | "background": "#0B1120" |
| 38 | } |
| 39 | ``` |
| 40 | |
| 41 | ## How it renders |
| 42 | |
| 43 | - `engine: remotion`, `mode: native`, composition id `DataRollup`. |
| 44 | - The data above arrives as Remotion `inputProps`; the component animates it with |
| 45 | `spring()` (bar height) + `interpolate()` (rolling number). |
| 46 | - Bars cascade in with a per-bar stagger; each number and its bar settle together. |
| 47 | - This is the enhancement a user opts a single data frame into — neighbor frames |
| 48 | in the same video stay hyperframes HTML, and ffmpeg concatenates them into one MP4. |
| 49 |