workflow-visualize-data
Visualize Data
This workflow guides you through creating data-driven animations in Helios.
1. Choose Your Library
- D3.js: Best for complex charts, graphs, and SVG-based visualizations.
- P5.js: Best for generative art, creative coding, and pixel manipulation (Canvas).
- Three.js: Best for 3D data visualization.
- Vanilla Canvas: Best for high-performance custom visualizations.
2. Prepare Your Data
Load your data (JSON, CSV) and ensure it is available when the composition starts.
// Load data
import rawData from './data.json';
3. Map Time to Data
The core concept is to map the current animation time (or progress) to your data state.
Linear Interpolation:
helios.subscribe(({ currentFrame, duration, fps }) => {
const progress = currentFrame / (duration * fps); // 0 to 1
// Show data up to the current progress
const visibleData = data.slice(0, Math.floor(data.length * progress));
render(visibleData);
});
Scale-Driven (D3):
const timeScale = d3.scaleLinear().domain([0, duration]).range([0, maxX]);
helios.subscribe(({ currentFrame, fps }) => {
const t = currentFrame / fps;
const currentX = timeScale(t);
// Update attributes
d3.selectAll('circle').attr('cx', d => d.x < currentX ? d.x : 0);
});
4. Handle Interactivity
If you need inputProps to control the visualization (e.g., changing datasets or color themes):
helios.subscribe((state) => {
const { theme } = state.inputProps;
updateColors(theme);
});
Related Skills
example-d3-animationexample-p5-animationexample-threejs-animation
More from bintzgavin/helios-skills
helios-skills
Collection of agent skills for Helios video engine. Use when working with programmatic video creation, browser-native animations, or Helios compositions. Install individual skills by path for specific capabilities.
71motion-design-rules
Motion design framework for programmatic video. Defines anti-slideshow architecture, visual layering, physics-based easing, choreography rules, and quality validation. Reference this skill from any guided video skill.
6helios-renderer
Renderer API for generating video/image output from Helios compositions. Use when you need to programmatically render a composition to a file using Node.js.
5guided-product-demo
End-to-end guided workflow for creating a product demo or showcase video. Extracts brand identity from the repo, generates a polished soundtrack, and produces a feature-focused motion.dev composition rendered via Helios CLI. Use when making product demos, feature showcases, or UI walkthroughs.
5guided-promo-video
End-to-end guided workflow for creating a promotional hype video. Extracts brand identity from the repo, generates beat-synced music, and produces a high-energy motion.dev composition rendered via Helios CLI. Use when making brand-aligned promo or hype videos.
5render-video
Workflow for rendering a Helios composition to a video file. Use when you need to automate video production or export a high-quality animation.
4