Skip to main content
100%

Let's make a face with D3.js!

✓ Published2🌍 Public
Jjsrussell11
Last edited Nov 24, 2020
Created on Nov 24, 2020
Forked from Smily Face

This visualization assembles a cartoon face from basic SVG shapes, depicting animated eyebrows alongside static eyes, a mouth, and a yellow circular head. The code constructs the face using D3.js v6 within a React framework, leveraging method chaining to position elements like the eyes and brows. Eyebrows transition vertically over two seconds via D3 transitions, while a mouth is drawn using the `arc` API to generate a path. The SVG canvas is 960 by 500 pixels, and all elements are centered using a translated group.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes