Skip to main content
100%

Fork of D3 Playground

✓ Published0🌍 Public
SSharad Shashank
Last edited Jun 13, 2021
Created on Jun 13, 2021
Forked from D3 Playground

This visualization generates a grid of 20 procedurally varied cartoon faces using React and D3.js version 6. The SVG-based faces are built from reusable components—a gradient-filled background circle, gradient-shaded eyes, a radial-gradient nose, and a D3 arc-generated mouth—each with randomized dimensions. The `d3.range` function creates the array that maps to face instances, while React’s `ReactDOM.render` renders the collection. The code combines D3’s geometric helpers (like the `arc` shape generator) with React’s component composition to produce a playful, non-interactive exploratory sketch.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes