Skip to main content
100%

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

✓ Published25🌍 Public
Ssaisreearibandi
Last edited Feb 9, 2023
Created on Feb 9, 2023

This example uses D3.js to construct a yellow smiley face from SVG primitives, including circles for the face and eyes, rectangles for eyebrows, and a path for the mouth. The chart demonstrates fundamental DOM manipulation by animating the eyebrow group’s vertical position with chained `transition` calls over four seconds, moving it up and then back to its original offset. Static attributes define the face’s geometry, while the `arc` generator creates the mouth’s curved shape.

AI-generated description

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

MIT Licensed

Similar vizzes