Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Lliunaiming
Last edited Jul 19, 2019
Created on Jul 19, 2019

A D3.js example builds an animated smiley face from basic SVG shapes, including a yellow circle, black eyes, an arc-based mouth, and eyebrow rectangles. The eyebrows move up and down repeatedly using chained `transition` and `duration` calls on the rectangle elements. The code imports `select` and `arc` from D3, appends shapes to an SVG canvas, and relies on D3 v5 for DOM manipulation and animation, with no external data source.

AI-generated description

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

MIT Licensed

Similar vizzes