Skip to main content
100%

Fork of Smiley Face Part VI

✓ Published0🌍 Public
JJean David
Last edited Apr 8, 2021
Created on Apr 8, 2021

This example renders a grid of eighteen smiley faces, each with randomly varied facial features and stroke thicknesses. The visualization is built as a series of React components, including `Face`, `BackgroundCircle`, `Eyes`, and `Mouth`, which are composed within a shared `FaceContainer` SVG element. The `Mouth` component leverages the `arc()` function from d3 to generate its curved path, while the random parameters for each face are produced using d3's `range` and JavaScript's `Math.random`.

AI-generated description

Smiley face implementation with React & D3, taking full advantage of React components and ES6 modules.

MIT Licensed

Similar vizzes