Skip to main content
100%

Let's make a face with D3.js !

✓ Published1🌍 Public
Ttanvirmahdad
Last edited Jan 30, 2021
Created on Jan 30, 2021

A friendly face built from SVG primitives in React uses D3 v6 selectors to attach elements to an empty SVG container. The face is centered via a translated group, with circles for eyes and a path generated by the D3 `arc` generator for the mouth. Eyebrows, rendered as rectangles, animate upward and back down using chained `transition().duration()` calls. The drawing relies on D3's `select` and `arc` APIs, with hardcoded numeric coordinates for feature placement.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes