Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
GGuruBigData
Last edited Dec 6, 2019
Created on Dec 6, 2019

This example demonstrates fundamental DOM manipulation with D3.js by constructing an animated smiley face from basic SVG shapes. The face comprises a yellow circle, two eyes, and a mouth drawn as an arc path, with eyebrows that move up and down using chained `transition().duration()` calls. The code builds the face by appending circles, rectangles, and a path to the SVG, using `d3.select` and `d3.arc` from D3 v5.

AI-generated description

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

MIT Licensed

Similar vizzes