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)

e27748c6d9b6427987ac8c612bf2debc

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

0 stars0🌍 Public
TTomislav Pezer
Last edited Oct 18, 2021
Created on Oct 18, 2021

A yellow smiley face rendered in SVG demonstrates D3.js DOM manipulation and animation. The code appends circles for the eyes, red nose, and arc-generated mouth, while rectangles serve as eyebrows that move via chained `transition.attr` calls over two-second intervals. Using `d3.select` and `d3.arc`, it builds the face from static shapes then animates the eyebrow group’s transform, showing basic enter-append and transition patterns with D3 v5.

AI-generated description

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