🌍 Public
Viewing a saved revision (read-only)
6a0039cf74f84ddd8dd40df8c3cbc46c
Let's make a face with D3.js!
A smiley face with yellow circular head, black eyes, and a curved mouth is rendered in SVG using D3.js v5 and ES6 modules. The eyebrows are rectangular shapes that animate vertically via chained `transition()` calls, moving up and then returning to their original position over repeated 2-second intervals. D3's `select` and `arc` APIs construct the SVG elements, with layout driven by hardcoded dimensions from the parent `<svg>`.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.