Skip to main content
100%

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

✓ Published0🌍 Public
SSANEEM MOHAMMAD
Last edited Feb 25, 2023
Created on Feb 25, 2023

A D3.js smiley face renders as SVG circles, arcs, and rectangles on a green background. The face’s eyebrows translate vertically in a looping transition, moving up then back down over four seconds. The code builds the face using `d3.select`, `d3.arc` for path shapes, and `selection.transition().duration()` for the animation. All elements are positioned manually with fixed pixel offsets relative to the SVG center, with no external data source.

AI-generated description

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

MIT Licensed

Similar vizzes