Skip to main content
100%

let's make a face with D3

✓ Published1🌍 Public
DDeepakBajaj2020
Last edited May 16, 2020
Created on May 14, 2020
Forked from HTML Starter

A smiling face rendered as a yellow circle with black eyes, eyebrows, and a mouth is drawn using D3.js primitives on an SVG canvas. The face is composed from `circle`, `rect`, and `path` elements positioned relative to the SVG's dimensions. A button labeled "Eyebrows" triggers a transition on the right eyebrow using D3's `.transition()` API, animating its `y` attribute over 2 seconds. The code relies on D3 v5 selection and manipulation methods, including `d3.select` and `d3.arc` for generating the mouth's path data.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes