Skip to main content
100%

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

✓ Published0🌍 Public
NNiharika Reddy Amanaganti
Last edited Feb 24, 2023
Created on Feb 24, 2023
Forked from Hello VizHub

A yellow smiley face with animated eyebrows demonstrates basic DOM manipulation and SVG rendering with D3.js. The face is constructed from SVG circles for the eyes and face, a path created with the `d3.arc` function for the mouth, and rectangles for the eyebrows. Animated eyebrow movement is achieved using `transition()` and `attr` chaining over two 2000-millisecond intervals. The example uses D3 v5 and shows how to select and manipulate SVG elements with data-driven methods.

AI-generated description

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

MIT Licensed

Similar vizzes