Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars0🌍 Public
Nnagasai-gummadi
Last edited Feb 23, 2023
Created on Feb 23, 2023

A smiley face built with D3.js animates its eyebrows in a looping upward-and-downward motion. The face is composed of SVG shapes: a yellow circle for the head, two circles for eyes, rectangles for eyebrows, and an arc-generated path for the mouth. The code uses D3 selections and the `arc` generator from `d3-shape`, along with chained `transition` calls to move the eyebrow group over repeated two-second intervals.

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