Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

ef2d06e84e504ea682a5ed3166d6c216

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

0 stars0🌍 Public
NNavaneeth-Ragi
Last edited Feb 23, 2023
Created on Feb 23, 2023

A smiling face, drawn with green and orange SVG shapes, demonstrates D3.js v5's DOM manipulation and animation capabilities. The face's eyebrows repeatedly shift upward and back down using chained `transition().duration()` calls, while the mouth is rendered using the `arc()` geometry function. The code builds the illustration by selecting an SVG element, appending grouped circles and rectangles, and positioning them relative to the viewport center.

AI-generated description

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