Skip to main content
100%

Let's make a face with D3.js

✓ Published2🌍 Public
BBenjamin Ogorek
Last edited Mar 12, 2020
Created on Mar 10, 2020
Forked from HTML Starter

A cheerful yellow face with black-outlined features is drawn in an SVG canvas, centered by a D3.js transform. The face includes a circle head, two eyes, rectangular eyebrows, and a semicircular mouth created with `d3.arc`. The eyebrows animate vertically using chained D3 transitions, moving up and down over two seconds each way. The example demonstrates basic SVG drawing and animation with D3 v5, using direct DOM selection and attribute manipulation.

AI-generated description

Loading the d3 script from UNPKG puts a d3 variable in the global namespace. (Take out "browse" from that link to load it.

MIT Licensed

Similar vizzes