Skip to main content
100%

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

✓ Published0🌍 Public
JJoshua
Last edited Mar 17, 2022
Created on Mar 17, 2022

A smiling face built from SVG shapes demonstrates fundamental D3.js DOM manipulation and animation. The yellow head, eyes, and eyebrows are drawn with circles and rectangles, while the mouth uses an arc path generator. The code imports `select` and `arc` from D3, chains two 2000-millisecond `transition` calls to animate the eyebrow group vertically, and positions elements using SVG attribute manipulation. No external data is loaded; the visualization relies entirely on hardcoded values and D3’s selection and transition APIs.

AI-generated description

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

MIT Licensed

Similar vizzes