Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Kkartikaymanoj
Last edited Feb 9, 2020
Created on Feb 9, 2020

A playful D3.js example builds a cartoon face from SVG shapes, showing a yellow circle with black-outlined eyes, animated eyebrows, and an arc-based smile. It renders entirely in SVG within a 960×500 viewport, using `d3.select`, `d3.arc`, and chained `transition` calls to animate the eyebrows upward and back over three seconds. The face is centered via a group transform, with fixed pixel constants for eye spacing, radius, and eyebrow dimensions. No external data is loaded, as all geometry is hardcoded in JavaScript.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes