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)

359699005c2b4f71b7e9f8ba8370abce

Let's make a face with D3.js!

0 stars1🌍 Public
AAreum Jo
Last edited Oct 12, 2019
Created on Oct 12, 2019

A smiling face composed of SVG shapes demonstrates D3.js fundamentals by animating its eyebrows upward and downward in a looping sequence. The code builds the face using `d3.select`, `d3.arc`, and chained `transition` calls on SVG elements like circles, rectangles, and a path for the mouth. Eyebrow motion is achieved through attribute transformations applied over two-second durations, while the static face relies on hardcoded numeric values for positioning and sizing. The rendering is entirely SVG-based, with no external data source.

AI-generated description

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