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)

0c4668b01a854b14932e9348456ce144

Let's make a face with D3.js!

0 stars0🌍 Public
Sstellnew
Last edited Aug 12, 2020
Created on Aug 12, 2020

This example uses D3.js to draw a cartoon smiley face as an SVG, then animates its eyebrows with a looping transition. The face is composed of circles and rectangular eyebrows that move up and down over two seconds using D3’s `transition` API. The code demonstrates fundamental DOM selection and element creation via `select` and `append`, while the mouth is formed using the `arc` shape generator. The animation runs continuously, showing basic attribute manipulation and chained transitions.

AI-generated description

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