Skip to main content
100%

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

✓ Published0🌍 Public
FFerasMorsi
Last edited Jan 29, 2023
Created on Jan 29, 2023

A yellow smiley face is drawn centered in an SVG canvas using D3.js v5. The face features fixed eyes and a mouth, while its eyebrows animate by moving up and down via chained `transition` calls. The code constructs the face with D3 selections and shape primitives, including `circle` elements for the eyes and an `arc` generator for the mouth. Eyebrows are `rect` elements that translate vertically over time, demonstrating basic DOM manipulation and animation with D3 transitions.

AI-generated description

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

MIT Licensed

Similar vizzes