Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Viewing a saved revision (read-only)

e5663315d86f473899158b9224aeb240

Let's make a face with D3.js!

0 stars0🌍 Public
Ssreeanthrds
Last edited Jan 13, 2020
Created on Jan 13, 2020

A D3.js smiley face demonstrates dynamic DOM manipulation with SVG and animation. The face, built from primitive shapes, shows eyebrows, eyes, nose, and mouth that shift in a looping sequence using D3 transitions. The `arc` generator constructs a curved mouth, while chained `transition().duration()` calls animate groups with 2-second movements. Positioned around the SVG center, the components rely on `attr` methods to define coordinates, and the animation cycles through offset translations before returning to the original state.

AI-generated description

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