Skip to main content
100%

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

✓ Published0🌍 Public
RRayed12
Last edited Apr 5, 2022
Created on Apr 5, 2022

This visualization uses D3.js to build a smiling face from basic SVG shapes, including a yellow circle, two eyes, eyebrows, and a mouth path generated with the `d3.arc` function. The eyebrows animate upward and back down over four seconds using chained `transition.attr` calls, demonstrating DOM manipulation and data binding in D3 v5. The face is centered on a 960×500 SVG canvas, with all shapes positioned relative to a central group.

AI-generated description

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

MIT Licensed

Similar vizzes