Fork of Let's make a face with D3.js!
✓ Published2🌍 Public
This example uses D3.js to construct a smiley face entirely from SVG shapes, including a yellow circle, two eyes, eyebrows, and a mouth drawn with an arc path. The code demonstrates fundamental DOM manipulation by selecting an SVG element, appending groups and shapes, and applying transforms. The eyebrows animate by chaining two `transition().duration(2000)` calls that shift their vertical position up and then back down, cycling through a curious expression. All shape attributes, such as radii and spacing, are defined as constants, and the face is centered using a translation based on the SVG's height and width.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed