Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Rrebeccayc
Last edited Jan 16, 2020
Created on Jan 16, 2020

This visualization demonstrates how to build and animate a smiley face using D3.js in an SVG canvas. The face features yellow circles for the head and eyes, rectangular eyebrows, and a mouth drawn with the `d3.arc()` shape generator. The eyebrows move up and down through chained `transition.duration()` calls, showing sequential state changes. The example uses D3 selections and attribute manipulation to position elements around a central group, highlighting core DOM handling and animation techniques in D3 v5.

AI-generated description

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

MIT Licensed

Similar vizzes