Skip to main content
100%

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

✓ Published0🌍 Public
Ddhruvs47
Last edited May 23, 2021
Created on May 20, 2021

This example demonstrates how D3.js can build playful, animated SVG graphics through fundamental DOM manipulation. It creates a comically explicit smiley face with moving eyebrows using SVG circles, paths, and arc generators. The eyebrows transition vertically using chained `transition()` calls over two-second intervals. The code relies on D3 v5 selections, the `arc()` and `linkVertical()` generators, and attribute manipulation to position and style each element.

AI-generated description

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

MIT Licensed

Similar vizzes