Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Let's make a face with D3.js!

0 stars3🌍 Public
TTomisin Owolabi
Last edited Apr 10, 2020
Created on Apr 9, 2020

A yellow circle becomes a smiley face as D3.js SVG drawing primitives add eyes, eyebrows, and an arc-shaped mouth. The eyebrows animate by chaining two `transition().duration()` calls that translate their group down and back up over four seconds. The example demonstrates fundamental DOM manipulation via `select` and `append`, using D3's `arc` helper to generate the mouth path.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed