🌍 Public
Viewing a saved revision (read-only)
a448fb3a68b44ae7825a045e6b78b534
Let's make a face with D3.js!
A smiley face assembled from SVG shapes animates in D3.js v5: a yellow rectangle transitions to green, and two eyebrows rotate as the mouth flips upside down. The code demonstrates fundamental DOM manipulation with `d3.select`, appending grouped circles, rectangles, and an `d3.arc`-generated path into an SVG canvas. Transitions via `.transition().duration(2000)` smooth the color and transform changes over two seconds.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.