Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

6ecfe619baa64dbeab767c36338b84ee

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

0 stars0🌍 Public
YYi Qing Ng
Last edited Sep 9, 2023
Created on Sep 9, 2023

This example demonstrates fundamental DOM manipulation with D3.js by rendering a smiling face whose eyebrows animate up and down. The visualization builds a yellow circle for the face, adds eyes, and uses a path generated with an arc composer for the mouth. The code uses D3's selection and transition APIs to move a group containing two rectangles, creating a looping eyebrow-raising gesture. The animation runs continuously, cycling the eyebrows between their resting and raised positions.

AI-generated description

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