# Remotion Rule: Charts > Remotion skill rule: Chart and data visualization patterns for Remotion. Use when creating bar charts, pie charts, line charts, stock graphs, or any data-driven animations.. Part of the official Re... ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx skills add remotion-dev/skills ``` This rule activates automatically when working with charts in a Remotion project. --- ## Intro Chart and data visualization patterns for Remotion. Use when creating bar charts, pie charts, line charts, stock graphs, or any data-driven animations.. Part of the [Remotion AI Skill](https://tokrepo.com/en/workflows/57997ead-c8fa-409c-916f-28bbc0adc8d9) — the official Agent Skill for programmatic video creation in React. **Best for**: Developers using Remotion for charts **Works with**: Claude Code, OpenAI Codex, Cursor --- ## Rule Content # Charts in Remotion Create charts using React code - HTML, SVG, and D3.js are all supported. Disable all animations from third party libraries - they cause flickering. Drive all animations from `useCurrentFrame()`. ## Bar Chart ```tsx const STAGGER_DELAY = 5; const frame = useCurrentFrame(); const { fps } = useVideoConfig(); const bars = data.map((item, i) => { const height = spring({ frame, fps, delay: i * STAGGER_DELAY, config: { damping: 200 }, }); return
; }); ``` ## Pie Chart Animate segments using stroke-dashoffset, starting from 12 o'clock: ```tsx const progress = interpolate(frame, [0, 100], [0, 1]); const circumference = 2 * Math.PI * radius; const segmentLength = (value / total) * circumference; const offset = interpolate(progress, [0, 1], [segmentLength, 0]);