Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Smiley Face Part V

Public visualization

Viewing a saved revision (read-only)

8b1d23c110a54b8bbba7580f8b10280a

Fork of Smiley Face Part V

0 stars1🌍 Public
TtrwMK
Last edited Oct 8, 2022
Created on Oct 8, 2022
Forked from Smiley Face Part V

This example renders a 6x3 grid of procedurally generated smiley faces using React and D3.js (v5). Each face is composed of modular React components—BackgroundCircle, Eyes, and Mouth—assembled within an SVG container. The mouth is drawn using D3’s `arc` API, while facial features, stroke widths, and radii vary randomly per face. The data source is a D3 `range` array driving the grid layout, with randomness applied for visual variety.

AI-generated description

Splitting React components into multiple files using ES6 modules. Bonus: React Fragments!