Skip to main content
100%

Let's make a face with D3.js (v2)!

✓ Published0🌍 Public
TTim
Last edited Oct 1, 2019
Created on Oct 1, 2019

A yellow smiley face is drawn with SVG, featuring circles for eyes and a mouth created with d3.arc. Its animated eyebrows, rendered as rectangles, rise and fall repeatedly via chained transitions on the transform attribute. The example demonstrates fundamental DOM manipulation with d3.select and d3.append, using d3.v5 to build the shape from geometric primitives.

AI-generated description

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

MIT Licensed

Similar vizzes