charts — Claude Code rule: what it does, how to install
Guidelines for building Remotion charts and animated metrics without frame flickering.
no license ★ 849 updated 2026-01-24
.claude/rules/charts.mdWhat charts does
This rule instructs the agent on creating animated data components within the Remotion framework. It covers bar charts, circular segment graphs, histograms, and progress meters built with React, SVG, or D3.js.
External animation packages must be avoided. Third-party transition tools trigger visual flickering because they do not synchronize with Remotion rendering. Every motion value must calculate directly from useCurrentFrame().
The guidelines detail specific mathematical patterns. Heights for bar graphs scale via spring() delays, while circular SVG charts reveal their segments by recalculating stroke-dashoffset starting from the top center.
What it helps with
- animate staggered bar charts in Remotion
- draw animated SVG pie charts from top center
- eliminate frame flickering in video chart renders
- drive data-driven visualizations through useCurrentFrame
Example prompts for the agent
- Create a staggered bar chart animation for my Remotion composition
- Build an SVG pie chart component driven by current frame progress
How to install charts
Manually: put the files in place
.claude/rules/charts.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/charts.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/charts.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/charts.mdManually: put the files in place
.clinerules/charts.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about charts
How to install the charts rule in Claude Code?
Save the rule file to .claude/rules/charts.md in your project root.
What does the charts rule do?
It guides Claude Code on structuring Remotion data visualizations using SVG and React primitives.
Why are third-party animation libraries blocked?
External engines do not sync with video frame sequencing, which leads to visible flickering during export.