Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
Aarchanagoli@my.unt.edu
Last edited Feb 27, 2024
Created on Feb 27, 2024

A fork of the “Make a face with D3.js” tutorial, this example draws a cartoon duck from basic SVG shapes—ellipses, a polygon, circles, and lines—positioned around a 960×500 canvas. It demonstrates fundamental DOM manipulation with D3 v5, using `select` to target the SVG and chained `.append` and `.attr` calls to build the body, head, beak, eyes, wings, and legs. The code relies on explicit pixel coordinates and fixed dimensions rather than data binding, rendering a static, yellow duck with orange beak, wings, and thicker legs.

AI-generated description

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

MIT Licensed

Similar vizzes