Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
AAndreas Papastergiou
Last edited Aug 14, 2021
Created on Aug 14, 2021

This visualization demonstrates fundamental DOM manipulation with D3.js by constructing an animated smiley face. A yellow circle with a black stroke forms the head, while two smaller circles serve as eyes, and a path drawn with `d3.arc()` creates the mouth. The eyebrows, rendered as rectangles, move up and down repeatedly using chained `transition().duration()` calls, animating their `transform` attributes over two-second intervals. The scene uses an SVG canvas and relies on D3 v5.9.2 for element selection, creation, and animation.

AI-generated description

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

MIT Licensed

Similar vizzes