Skip to main content
100%

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

✓ Published0🌍 Public
SSuzie1022susu
Last edited Jan 13, 2023
Created on Jan 13, 2023

A smiling face is drawn with D3.js, rendered as SVG shapes, with eyebrows that animate by moving up and down. The code uses D3’s `select` and `append` to build the SVG hierarchy, and the `transition().duration(2000)` API to create the two-second eyebrow movement. The face is composed of circles for the eyes and head, and a path generated with D3’s `arc` function for the mouth, all positioned using SVG transforms.

AI-generated description

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

MIT Licensed

Similar vizzes