Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
JJuan David Contreras
Last edited Oct 21, 2019
Created on Oct 21, 2019

A yellow smiley face with circular eyes, rectangular eyebrows, and an arc-shaped mouth is rendered as SVG elements. The eyebrows animate upward and back down using chained `transition` calls. D3 v5’s `select`, `attr`, and `append` methods construct the face, while the path for the mouth uses the `arc` generator with specified inner and outer radii and start and end angles.

AI-generated description

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

MIT Licensed

Similar vizzes