Turn Chart Data Into a Captioned Video With WebM Export
Get one offline HTML file that turns pasted chart data into a 20-second captioned video you can scrub, step through live and export as WebM in 16:9 or 9:16.
Text prompt for Claude and ChatGPT
You get: one complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
You are a front-end developer and data-visualization designer. Build Chart to Motion: an offline tool in one HTML file that turns pasted chart data into a 15-30 second captioned video explainer. A textarea takes CSV or two columns (label, value) preloaded with eight quarters of sample revenue. Draw every scene on one canvas so the export matches the preview.
Scenes: title card, axes drawing in, bars growing with a stagger, a highlight on the biggest period-to-period change (others dimmed, a curved arrow, a delta badge), then a takeaway card. Each scene shows a caption computed from the data: range, total and average, biggest rise or fall with its percent, overall change.
Rules:
1. Controls: play/pause (Space), a scrubber that seeks to any moment, and a 16:9 / 9:16 toggle (1280x720 or 720x1280).
2. Export WebM: check MediaRecorder and isTypeSupported, record canvas.captureStream, offer a Blob URL download. If unsupported or blocked, disable the button and suggest a screen recorder.
3. Presenter mode: no auto-advance; Next/Previous buttons and arrow keys step scenes, play/pause works within a scene, a scene counter shows.
4. Navy, sky-blue and amber palette; responsive from 360 to 1280px.
5. prefers-reduced-motion: show each scene's end state with a short crossfade; keep captions.
6. No external libraries, fonts, network calls or localStorage.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- One canvas renders every scene from a single time value, so the scrubber, presenter mode and WebM export all show exactly the same frames.
- Captions are computed from the data (range, total, average, biggest change, overall %), so any pasted dataset gets a meaningful story.
- Export is feature-checked before use and wrapped in try/catch, so blocked sandboxes show a screen-recorder note instead of failing.
Works in Claude (artifact preview, any plan), ChatGPT or Gemini. Save as .html for WebM export in Chrome, Edge or Firefox. Claude Motion, Anthropic's animation tool, is a Team/Enterprise beta (checked Nov 2026); this file works on any plan.
Common edits
- Swap the bars for a growing line, or change the scene lengths in the scenes list to retime the video.
- Ask for your brand colors and a logo-free end card with your own call to action instead of the takeaway.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Write clear captions for dashboard charts
Turn complex chart summaries or data points into clear, executive-ready captions. Use it before sending reporting decks to busy stakeholders.
Clean Copy-Pasted PDF Text Without Changing Original Wording
Get clean, readable text from messy PDF copy-pastes with broken lines, split hyphens, and stray headers removed while keeping the original wording.
Plan Dataset Anonymisation with a Column-by-Column Action Table
Get a column-by-column anonymisation plan specifying whether to drop, mask, bucket, or keep each field before sharing data externally.
Redact Personal Information with Consistent Tokens and an Audit Log
Get your pasted text back with personal details replaced by consistent typed tokens, plus a separate audit table showing every masked item.
Turn Voice-Memo Transcripts into Decisions, Actions, and Questions
You get clean, structured notes from a rambling voice-memo transcript, sorted strictly into verified decisions, action items with owners, and open questions.
Spec and Build a Weekly KPI Dashboard in Claude Data
Get a checked weekly KPI dashboard spec with exact definitions, visible queries, week-over-week comparisons, RAG rules and a data checks panel, then the build.
- Clean inconsistent date formats and text categories
- Differentiate structural null values from missing data
- Map inconsistent export columns to target schemas
- Calculate Net Promoter Score from survey data
- Evaluate marketing channel efficiency from campaign performance data
- Evaluate pricing tier performance from subscriber data