Fork of Fork of Let's make a face with D3.js!
✓ Published0🌍 Public
This example builds a smiling face out of basic SVG shapes, including circles for the eyes and pupils, rectangles for the eyebrows, and an arc-generated mouth. Using D3 v5’s selection and transition APIs, the eyebrows animate up and down over two seconds, demonstrating fundamental DOM manipulation and data-driven styling. The face is centered and scaled based on the SVG’s width and height, with the `d3.arc` function defining both the mouth and eye arcs for a clean, geometric look.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed