Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
Mmallikgarjuna
Last edited Mar 18, 2020
Created on Mar 18, 2020

A yellow smiley face is drawn with D3.js using SVG shapes: a circle for the head, two circles for eyes, rectangles for eyebrows, and an arc-generated path for the mouth. The brows animate upward via chained `transition().duration()` calls on a group, though the second transition repeats the same transform. The code uses the `select`, `arc`, and named attributes from the D3 v5 API, with dimensions set from the SVG's height and a centered `g` transform.

AI-generated description
MIT Licensed

Similar vizzes