🌍 Public
Viewing a saved revision (read-only)
2c8b7eac3f9a4c89a4afbc34984666f6
Fork of Let's make a face with D3.js!
This fork of “Let’s make a face with D3.js!” builds a yellow smiley face in an SVG canvas using D3 v5. It demonstrates fundamental DOM manipulation by selecting the `svg` element, appending a group, and composing circles and rectangles for eyes, a path-arc mouth, and rectangular eyebrows. The code uses `d3.select` and `d3.arc` to shape the smile, then animates the eyebrow group with `transition.attr` over two seconds, moving it up and down to create a lively facial expression.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.