🌍 Public
Viewing a saved revision (read-only)
c3f482f175a8445aab06187071535d98
Fork of Let's make a face with D3.js!
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 descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.