Fork of Let's make a face with D3.js!
✓ Published0🌍 Public
This example shows a yellow smiley face drawn with D3.js v5, featuring two eyes, a curved mouth, and animated eyebrows that move up and down in a repeated transition. The face is constructed using SVG primitives like `circle`, `rect`, and `path` with the `d3.arc` shape generator for the mouth. The eyebrows animate via chained `transition` calls with a 2-second duration each, translating the eyebrow group vertically. The code demonstrates fundamental DOM selection and manipulation using `d3.select` and `d3.append` on an SVG canvas.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed