Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Let's make a face with D3.js!

Public visualization

Fork of Let's make a face with D3.js!

0 stars1🌍 Public
Ssalwa191
Last edited May 3, 2021
Created on May 3, 2021

This visualization demonstrates basic D3.js DOM manipulation by rendering an animated smiley face. The code builds a yellow circle for the head, adds two circular eyes, and animates rectangular eyebrows upward and downward using chained `transition()` calls. A mouth is drawn using an `arc()` path generator. The example uses D3 v5 to select SVG elements, set attributes like fill and stroke, and apply timed transforms, all rendered as an SVG animation.

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