Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed