Fork of Let's make a face with D3.js!
✓ Published0🌍 Public
This example demonstrates fundamental D3.js DOM manipulation by building a yellow smiley face with an animated expression. It shows a static face whose eyebrows smoothly move up and down over two-second intervals, using SVG shapes composed of circles, rectangles, and a path-based mouth. The code leverages D3 v5’s `select` and `append` methods for element creation, `arc()` for the mouth’s geometry, and chained `transition().duration()` calls to animate the eyebrow group’s transform attribute. The animation runs automatically, cycling the eyebrows between raised and neutral positions.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed