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

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

One HTML file. Save it and open it in any browser.Open full screen (opens in a new tab)
Five captioned scenes in the 20-second videoSample quarterly revenue, scrubbable and exportable as WebM
  1. Title cardScene 1Opens on sample quarterly revenue
  2. AxesScene 2Chart axes appear
  3. Growing barsScene 3Bars grow for each quarter
  4. Biggest jumpScene 4Q3 to Q4 2024, +135, +30%
  5. Takeaway cardScene 5Up 86% overall

Example: Chart to Motion, a paste-your-data chart video maker.

The page opens on a title card for sample quarterly revenue. Press Play or Space to watch five captioned scenes: title, axes, growing bars, the biggest jump (Q3 to Q4 2024, +135, +30%) and a takeaway card (up 86% overall). Drag the timeline to seek, or switch to 9:16 for a vertical cut. Turn on Presenter mode to step through scenes with the arrow keys. Export WebM records the canvas and gives you a download link. Paste your own rows and press Build explainer.

Written by AI from this prompt. Your results will vary.

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

More in Data Analysis
Data Analysis

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.

Data Analysis

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.

Data Analysis

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.

Data Analysis

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.

Data Analysis

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.

Data AnalysisClaude

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.