Skip to main content
100%

Let's make a face with D3.js!

✓ Published14🌍 Public
JJishen Xu
Last edited Aug 25, 2018
Created on Aug 25, 2018

A smiley face rendered in SVG uses D3.js selections to build its features. The code draws a yellow head, eyes, and a mouth with an `arc` path generator, while the eyebrows animate through chained `transition` calls that alternate their vertical offset. The face is centered with a translation, and all shapes are created by appending SVG elements, demonstrating basic DOM manipulation and data-driven animation.

AI-generated description

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

MIT Licensed

Similar vizzes