Fork of Let's make a face with D3.js!
✓ Published1🌍 Public
This visualization demonstrates a yellow smiley face built with D3.js, featuring two eyes and a curved mouth created using an SVG path with the d3.arc() API. The face’s eyebrows, rendered as rectangles, move vertically through a chained transition that animates their transform attribute up and down over two-second intervals. The code uses d3.select and d3.arc from the D3 v5 library to construct the SVG elements, with eyebrows shifting smoothly via transition.duration, while the static face parts remain fixed on a 960×500 canvas.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed