Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Hhurtmenot271
Last edited Aug 28, 2019
Created on Aug 28, 2019

This example creates a red SVG smiley face and animates its eyebrows to demonstrate fundamental DOM manipulation with D3.js. It uses `d3.select` to target the SVG element and applies styles directly, while the face itself is constructed through basic SVG shapes. The project relies on D3 v5, loaded from unpkg, and features a video tutorial embedded in the README. The eyebrows move via JavaScript-driven updates, though the specific animation logic is in a bundled file rather than shown in the visible source. The rendering is entirely SVG-based within a fixed 960×500 canvas.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes