Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 2.4 KB

AreaStackTrend.md

File metadata and controls

46 lines (29 loc) · 2.4 KB

Area Stack Trend

中文 · GitHub

  • Recipe key:AreaStackTrend

Purpose

Stacked area chart for 3-5 series stacking into a total over 5-15 time periods.

Getting started

Give the DataMagic repository to your coding agent and ask it to configure the datamagic Skill and use this recipe. Reuse an existing checkout when available. Supply your data, media and requested changes. See the setup guide. File paths below are relative to cards/.

Source and data

  • Component:src/legacy/components/runtime_style_templates/line_chart/RuntimeAreaStackTrend.tsx
  • Schema:templates/runtime-cards/AreaStackTrend/schema.json
  • Sample data:templates/runtime-cards/AreaStackTrend/sample-data.json
  • Render entry:src/runtime/RuntimeCard.tsx
  • Component export:AreaStackTrendDemo

Data and authoring constraints

Replace sceneContent.data and matching sceneContent.template_payload fields together. Text scenes use titles, copy, bullets and their payload fields. Update targets in scene.animations when changing labels. Follow the supported component data shape and keep values and text programmatic.

  • Data contract:multi-series time series
  • Entrance strategy:stacked area draw
  • Emphasis strategy:series focus highlight
  • Sample trigger:Mobile
  • Highlight targets:series, area, label

Update labels, triggers and commentary with the data; do not retain mismatched sample narration. The default render is 1280×720, 30fps, 180 frames (6 seconds); gallery media may be a separate higher-resolution output.

Render

Install dependencies and render from cards/. Use the resolution, duration and frame rate declared by the composition and recipe.

npm ci
npx remotion render src/index.ts RuntimeTemplatePreview-AreaStackTrend out/AreaStackTrend.mp4 --props=templates/runtime-cards/AreaStackTrend/sample-data.json

Delivery review

Verify input/output values, labels, units, entity identities, icons and colors. Inspect opening, middle, every reveal and ending for overlap, clipping, contrast, continuity and reading holds; check narration/caption synchronization when audio is present. Label demonstration data and generated media. Deliver MP4, editable source, props and a reproducible render command.