Skip to main content
100%

Smiley Face w/ SVG & D3

✓ Published1🌍 Public
GGary Ditsch
Last edited Feb 27, 2021
Created on Feb 26, 2021
Forked from Hello HTML

This example shows a smiley face composed of overlapping SVG shapes, assembled declaratively in React. The face includes a yellow background circle, two black eyes, and a mouth, all positioned relative to a center point. The code builds the mouth using d3’s `arc` generator with custom radius and angle settings, while the React components (`BackgroundCircle`, `Eyes`, `Mouth`, `FaceContainer`) render the SVG elements. Using d3.v6 and React 17, the visualization demonstrates reusable component composition and D3’s path generation for a simple, static graphic.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes