Skip to main content
100%

Let's make a face with D3.js!

✓ Published2🌍 Public
JjimacDS
Last edited Jun 15, 2020
Created on Jun 13, 2020

A yellow smiley face composed of SVG shapes uses D3.js to demonstrate fundamental DOM manipulation. The face includes a circular head, eyes, rectangular eyebrows, and a mouth drawn with the `d3.arc` path generator. The eyebrows animate via chained `transition` calls, moving down and back up over two seconds, with transforms applied to a group element. The code selects the SVG, appends groups and shapes dynamically, and uses D3 v5 to manage attribute updates and timed transitions.

AI-generated description

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

MIT Licensed

Similar vizzes