Skip to content

Data2motion

Data - chart - motion - standalone HTML.

Install: git clone https://github.com/nolangz/data2motion

Works with Codex · 91 GitHub stars

Install

$git clone https://github.com/nolangz/data2motion

Install command taken from the project's README or registry entry. Always review code before running it.

Data2Motion - AI Data Animation Skill for Animated Charts

Data -> chart -> motion -> standalone HTML.

SEO landing page · README preview · Chart motion atlas · Spec format · Skill instructions · Reference sibling: Pixel2Motion

Data2Motion is an AI data animation skill for turning JSON data, KPIs, rankings, trends, and small datasets into polished animated chart HTML. This repository ships the Lite engine: a script-driven Codex and Claude skill that takes one compact JSON spec, chooses from a fixed chart vocabulary, and exports a dependency-free HTML file with the Data2Motion house style, replay controls, reduced-motion support, and deterministic QA hooks.

中文:Data2Motion 的 Lite 版本是一个把数据变成动态图表 HTML 的 AI skill。你只需要给出数据和图表类型,脚本负责版式、颜色、动效、控制条和可复现渲染,适合快速把一个数字、趋势、排名、对比或占比做成可上线的 data story。

Recommended review order: the README preview page, the chart motion atlas, the example outputs, and then the spec format.

Data-to-Motion Gallery

Open the local preview page at showcase/index.html to browse the launch-style README page, built examples, and visual templates. Open docs/index.html for the SEO landing page intended for GitHub Pages.

Motion output What it demonstrates
examples/kpi_arr.html One big KPI number with a small supporting trend.
examples/multiline_biomass.html Multi-line comparison with direct labels and smooth draw-on motion.
showcase/chart-motion-atlas.html Essential dark-console chart and motion vocabulary.
showcase/packages/ft.html Light editorial FT-style template for poster-like data stories.

Why Lite

A text-only model cannot reliably inspect its own visual output. Data2Motion Lite moves the look and motion into scripts/build.py, so the agent writes only a small JSON spec and the script owns the rendering.

The result is intentionally constrained:

  • One JSON file in, one standalone HTML file out.
  • No hand-authored HTML, CSS, SVG, or animation per chart.
  • A fixed chart vocabulary: kpi, bar, column, diverging, line, multiline, area, stacked, scatter, lollipop, dumbbell.
  • Two launch-ready styles: essential dark console and ft light editorial.
  • Built-in replay, speed, freeze, ?static=1, and ?t=<ms> hooks.

Deliverables

  • chart_motion.html: standalone animated chart page generated from a JSON spec.
  • spec.json: the data, chart type, title, takeaway, source, unit, duration, style, and optional scale settings.
  • showcase/index.html: README-style launch page for presenting the project.
  • docs/index.html: SEO landing page and waitlist entry for Data2Motion and the upcoming commercial motion platform.
  • showcase/chart-motion-atlas.html: Essential house-style reference.
  • showcase/packages/ft.html: FT-style reference template.
  • references/spec.md: the contract every input spec follows.

Workflow

  1. Read references/spec.md and pick the closest chart type.
  2. Write a compact JSON spec with real numbers and a source.
  3. Build the output:
python3 scripts/build.py examples/kpi_arr.json chart_motion.html
  1. Open chart_motion.html in a browser.
  2. Use ?static=1 for the final frame or ?t=<ms> for deterministic frame checks.

Similar plugs

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create prototypes, websites, apps, dashboards, presentations, images, and videos with your team…

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

Open-source AI job search agent and job finder: scan job boards, score each job 1-5 against your CV before you apply, tailor an ATS-friendly resume and cover letter, get…

Agent skillSearch & web+1,899 this week

Explore related