Skip to main content
100%

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

✓ Published0🌍 Public
VVenkat-Dhulipalla
Last edited Feb 23, 2023
Created on Feb 22, 2023

A smiley face built with SVG shapes demonstrates D3.js v5 selection and appending methods, including circles, rects, paths, and polygons for facial features. The eyebrows move up and down repeatedly via chained `transition()` calls with `d3.easeSinInOut`, while sweat drops loop through a recursive `animate` function using data binding. The code uses `d3.select`, `d3.arc` for the mouth and tears, and explicit SVG attributes to compose the face on a gray background.

AI-generated description

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

MIT Licensed

Similar vizzes