Skip to main content
100%

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

✓ Published0🌍 Public
DDanyalMazhar
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example builds a smiling face with D3.js, using SVG primitives like circles and rectangles to depict the head, eyes, and eyebrows. The code animates the eyebrows by chaining `transition().duration(2000)` calls to move them up and down. The mouth is drawn with a D3 `arc` shape, and all elements are grouped and transformed to be centered within the SVG.

AI-generated description

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

MIT Licensed

Similar vizzes