Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
WWesley Yuen
Last edited Jan 16, 2020
Created on Jan 16, 2020

A yellow smiley face is drawn in SVG, with two circular eyes, a mouth shaped by a D3 arc path, and rectangular eyebrows that animate by moving upward and back down. The code uses D3.js v5’s `select`, `arc`, and `transition` APIs to construct and manipulate the SVG elements, applying transforms to position face features and trigger the eyebrow movement over timed transitions.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes