Fork of Let's make a face with D3.js!
✓ Published0🌍 Public
This example uses D3.js to draw a simple, animated smiley face in an SVG canvas. The code constructs the face from basic shapes—a yellow circle for the head, two circles for the eyes, rectangles for the eyebrows, and a path for the mouth—using `select` and `append` for DOM manipulation. The animation runs continuously, moving the eyebrows up and down via chained `transition().duration()` calls that alter the group’s `transform` attribute over two-second intervals. The data is entirely hardcoded, with no external dataset.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed