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)

07ed93d7298a4b90b2cbfe95df2ffb8d

Let's make a face with D3.js!

0 stars0🌍 Public
Tthemacmarketer
Last edited Jan 1, 2020
Created on Jan 1, 2020

A yellow smiley face with animated eyebrows demonstrates core D3.js DOM manipulation. The code uses D3 v5's `select` and `arc` to build SVG circles and a mouth path, while chained `transition().duration()` calls animate the eyebrow group’s `transform` attribute over two seconds. The face is centered via an SVG `g` element, with positions defined by numeric constants.

AI-generated description

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