Fork of Let's make a face with D3.js!
✓ Published0🌍 Public
This example shows a yellow smiley face built with SVG shapes whose eyebrows animate up and down. The face is constructed using D3.js v5 selections to append a circle for the head, two circles for the eyes, rectangles for the eyebrows, and a path generated with the `arc` helper for the mouth. The eyebrows move via chained `transition().duration(2000)` calls on a group element, shifting its `transform` translation between two vertical offsets. All shapes are centered using a group translated to the middle of a 960-by-500 SVG canvas.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed