Skip to main content
100%

Let's make a face with D3.js!

✓ Published2🌍 Public
Xxfqx92
Last edited Dec 1, 2019
Created on Dec 1, 2019

A yellow circle face with black-outlined eyes and a mouth is drawn using D3.js v5. The code builds SVG shapes with `d3.select` and `d3.arc` for the mouth. Eyebrows are rectangles that animate up and down using chained `transition().duration(2000)` calls, moving via `attr('transform', ...)`. The face is centered by translating a group element based on the SVG’s dimensions. No external data is loaded; all geometry is defined with hardcoded constants.

AI-generated description
MIT Licensed

Similar vizzes