Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello HTML

Public visualization

Viewing a saved revision (read-only)

525684b23c2143b0a0c9514d905484c1

Fork of Hello HTML

0 stars1🌍 Public
MMichael Rauco
Last edited Jan 24, 2025
Created on Jan 23, 2025
Forked from Hello HTML

This example renders a simple smiling face entirely with React components and SVG shapes, using D3.js only to generate the mouth’s arc path. The face combines a yellow background circle, two eyes, and a curved mouth, all positioned relative to a central coordinate. The code defines separate React components for each facial feature, with D3’s `arc` API computing the mouth’s path from radius and width values. The face is drawn at a fixed 960 by 500 viewport with no data source, purely demonstrating reusable component composition and declarative SVG rendering in React.

AI-generated description

A bare minimum HTML page.