Fork of D3 Playground
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed