Skip to main content
100%

let's make a face with d3

✓ Published0🌍 Public
AAsimali39
Last edited Jan 3, 2022
Created on Jan 3, 2022
Forked from Simley Face Part I

A smiling face rendered as React components demonstrates how d3 shape generators work with SVG. The face is built from modular parts—BackgroundCircle, Eyes, and Mouth—composed inside a FaceContainer that applies a translation transform. D3’s `arc` generator creates the mouth path using inner and outer radii with fixed start and end angles. The yellow circle face, black stroke, and positioned eyes result from declarative React props that pass numeric values for radii, offsets, and dimensions, following an example from v3 of the D3 gallery.

AI-generated description

Half way towards a simley face.

MIT Licensed

Similar vizzes