Fork of Let's make a face with D3.js!
✓ Published0🌍 Public
This example creates a yellow smiley face by drawing circles with D3.js onto an SVG canvas. The face features two black eyes and a mouth formed using D3's `arc` shape generator, which defines the path as a semi-circular stroke. It demonstrates fundamental DOM manipulation by selecting the SVG element with `d3.select` and appending shapes with chained `.attr` methods. The code also uses a `g` group element with a translate transform to position the facial features relative to the canvas center.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed