Skip to main content
100%

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

✓ Published0🌍 Public
UUpamanyu-ml
Last edited Feb 2, 2021
Created on Feb 2, 2021

A sad smiley face drawn entirely with SVG shapes demonstrates basic D3.js DOM manipulation and animation. The code uses `select` to target the SVG element and `append` to create a yellow circle, eyes, and rectangular eyebrows. A `transition().duration()` sequence moves the eyebrow group down and back, creating a repeated frowning motion. The mouth is generated using the `arc()` generator from D3's shape module with specified inner and outer radii and angle values.

AI-generated description

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

MIT Licensed

Similar vizzes