Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Viewing a saved revision (read-only)

febfa751bf604931b959a07c40bfcaac

Let's make a face with D3.js!

0 stars3🌍 Public
Bbukbukbukka
Last edited Nov 30, 2019
Created on Nov 29, 2019

A yellow SVG smiley face with black facial features demonstrates D3.js’s core DOM manipulation and transition APIs. The head, eyes, eyebrows, nose, and mouth are built by appending SVG circles, rectangles, and arcs via `d3.select` and `d3.arc`. Concurrent two-second `transition` chains animate the eyebrow group upward, eyeballs sideways, nose sideways, and mouth downward before returning all groups to their original positions. The example is rendered entirely in SVG and uses D3 v5 from a CDN.

AI-generated description

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