Skip to main content
100%

Let's make a face with d3.js

✓ Published1🌍 Public
KKaleb LaBarrie
Last edited Sep 16, 2021
Created on Sep 16, 2021
Forked from Shapes with SVG

This example constructs a cartoon face from basic SVG shapes using D3.js v7, with a yellow circular head, eyes, eyebrows, and an arc-based mouth. It demonstrates D3’s `select`, `arc`, and `append` methods to build the scene, and uses `transition` with `.duration()` to animate the eyebrows moving up and down in a repeating cycle. The face is centered via an SVG `g` transform, with all elements rendered in a 960×500 viewport.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes