🌍 Public
Viewing a saved revision (read-only)
588f131594434ef6bc6b2e60fd4db694
Fork of Let's make a face with D3.js!
This example builds a yellow smiley face with D3.js, featuring two eyes, a mouth drawn with the `d3.arc` path generator, and eyebrows that animate vertically via chained `transition().attr()` calls over two-second intervals. The face is centered using an SVG `g` element transformed to the viewport’s midpoint, with all shapes positioned relative to that origin. The code uses D3 v5 selections and transitions to demonstrate fundamental DOM manipulation and SVG attribute updates, rendering the animation entirely in the browser.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.