Skip to main content
100%

Let's Make a Face with D3.js

✓ Published3🌍 Public
AAloysius
Last edited Feb 14, 2020
Created on Feb 14, 2020

A yellow face with eyes, eyebrows, and a mouth is built from SVG shapes using D3.js v5. The code uses `d3.select` and `d3.arc` to construct the face, with circles for eyes and a path for the mouth. Eyebrows are rectangles that animate via `transition.attr` over two seconds, moving up and down. The rendering is SVG-based, centered in a 960×500 viewport, with static geometry defined by numeric constants.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes