Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Smiley Face Part1

Public visualization

Fork of Fork of Smiley Face Part1

0 stars0🌍 Public
PPranshuBarar
Last edited Feb 24, 2023
Created on Feb 24, 2023

A grid of randomly generated smiley faces demonstrates reusable React components with D3’s `arc()` API for the mouth. Each face renders as an SVG via `FaceContainer`, composed of a yellow `BackgroundCircle`, two `Eyes`, and a `Mouth` path, with randomized stroke widths, eye offsets, radii, and mouth dimensions. The layout uses D3’s `range()` to produce 18 faces, each with slightly varying facial features, showing how deterministic SVG geometry and D3 utilities can create playful data-driven visualizations.

AI-generated description

Half way towards the smiley face

Comments

Sign in to join the discussion.

MIT Licensed