Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
RRoger Yu-Hsiang Lo
Last edited Jan 17, 2020
Created on Jan 14, 2020

A yellow circle face with eyes, brows, and a mouth is drawn using D3.js v5 SVG primitives. The face is centered via a transformed group, and the eyebrows animate upward and back down using chained `transition().duration()`. The mouth is created with the `d3.arc` shape generator, while circles and rectangles define the eyes and brows. The code imports `select` and `arc` from D3 and uses SVG attributes for positioning.

AI-generated description
MIT Licensed

Similar vizzes