Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
GGloal
Last edited Aug 8, 2019
Created on Aug 8, 2019

D3.js builds a simple, interactive SVG smiley face whose eyebrows move. The example demonstrates core DOM manipulation by appending and positioning SVG shapes, including circles, a polygon, and a path. It uses D3's `select`, `attr`, and `append` methods to construct the face, while an `arc` shape generates the mouth. A linked video tutorial accompanies the code. The face is centered using an SVG group with a translate transform, and the styling is defined in a separate CSS file.

AI-generated description

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

MIT Licensed

Similar vizzes