Skip to main content
100%

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

✓ Published0🌍 Public
ZZakaria EL
Last edited May 24, 2022
Created on May 24, 2022

This example demonstrates fundamental DOM manipulation with D3.js by drawing a smiley face with yellow circular head, eyes, eyebrows, and an arc-based mouth. The animation shows the eyebrows moving up and down repeatedly, using D3's transition system to create a two-second duration tween between transform states. The code imports `select` and `arc` from the D3 library, builds SVG shapes through chained `.attr()` calls, and relies on `d3.v5` with SVG rendering.

AI-generated description

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

MIT Licensed

Similar vizzes