Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Ppcbt1125
Last edited Nov 3, 2019
Created on Nov 3, 2019

A yellow circle face with black-outlined features is rendered in SVG, and its eyebrows animate upward and back down over four seconds. Built with D3 v5, the example uses `d3.select` to target the SVG, `d3.arc` to generate the mouth path, and chained `transition().duration()` calls to move the eyebrow group. The face is centered via a translated `g` element, with eye spacing, radius, and eyebrow dimensions defined as constants. No external data is loaded; all shapes are constructed programmatically from hard-coded values.

AI-generated description
MIT Licensed

Similar vizzes