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 stars0🌍 Public
NNameeeee
Last edited Mar 2, 2020
Created on Mar 2, 2020

A smiley face drawn with D3.js shows its eyebrows moving up and down in a looping animation. The code builds the face using SVG shapes: a yellow circle for the head, two circles for eyes, rectangles for eyebrows, and a path generated with the `d3.arc` function for the mouth. Eyebrow motion is created with chained `transition` and `duration` calls that alternate between two vertical positions. The example demonstrates fundamental DOM manipulation and data-driven styling using D3 v5’s selection, arc, and transition APIs.

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