Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
WWesley Yuen
Last edited Jan 16, 2020
Created on Jan 16, 2020

A yellow smiley face with animated eyebrows demonstrates D3.js DOM manipulation and SVG rendering. The code uses `d3.select` and `d3.append` to construct circles, rectangles, and a mouth path via `d3.arc`. Chained `transition().duration()` calls repeatedly shift the eyebrow group’s `transform` attribute, creating a bouncing motion. All elements are centered within a fixed 960×500 SVG viewport.

AI-generated description

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

MIT Licensed

Similar vizzes