Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
Mmilkfam
Last edited Feb 21, 2021
Created on Feb 21, 2021

A yellow smiley face with animated eyebrows is drawn in SVG using D3.js v5. The code creates circles for the face and eyes, rectangles for eyebrows, and an arc-generated path for the mouth. D3 selections and `transition` with `attr` chaining move the eyebrow group up and down over two-second intervals. The example demonstrates fundamental DOM manipulation with `select`, `append`, and `attr`, and uses `arc` from D3’s shape module to define the mouth path.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes