Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
BblakeCS
Last edited Jan 30, 2020
Created on Jan 29, 2020

A yellow smiley face is drawn with D3.js using SVG shapes, including circles for the eyes and an arc for the mouth. The eyebrows, rendered as rectangles, animate up and down in a repeating two-second cycle via chained `transition()` calls. The visualization demonstrates fundamental DOM manipulation with D3 selections and the `arc` generator, using a static dataset defined inline. The face is centered on a 960×500 SVG canvas with the body constrained to no margins or overflow.

AI-generated description

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

MIT Licensed

Similar vizzes